Jump to content

Parallax video background on 7.1

Recommended Posts

Posted

Hello I am working on a site where the home page has a video background. The client is wanting the parallax effect - the content of the page scrolls over the video and the video stays static/in place. I have seen many ways to do this with images, but nothing on for video. Does anyone have a fix or solution they have found?

  • 2 weeks later...
  • 7 months later...
Posted

Did anybody find an answer to this? 

On 6/2/2023 at 6:47 PM, destineesherri said:

Hi, did you find a solution to this? I'm attempting the same thing now with no luck.

 

On 5/22/2023 at 5:14 PM, brennakd said:

Hello I am working on a site where the home page has a video background. The client is wanting the parallax effect - the content of the page scrolls over the video and the video stays static/in place. I have seen many ways to do this with images, but nothing on for video. Does anyone have a fix or solution they have found?

 

  • 4 weeks later...
Posted

@tuanphan I'm new to squarespace.  I've worked in wordpress using Divi Theme Builder most of my life and within that framework setting up parrallax for video backgrounds was rather easy, but as I'm leaning into squarespace I'm noticing it only offers parrallax for background images.   

I'd love to be able to make my background video's parrallax.  Is there any CSS coding you can provide me with? I really appreciate your help.  My website link is http://www.reliefpastors.com

I look forward to your response.

 

Thank you.

Posted
On 2/11/2024 at 1:59 PM, rhett247 said:

@tuanphan I'm new to squarespace.  I've worked in wordpress using Divi Theme Builder most of my life and within that framework setting up parrallax for video backgrounds was rather easy, but as I'm leaning into squarespace I'm noticing it only offers parrallax for background images.   

I'd love to be able to make my background video's parrallax.  Is there any CSS coding you can provide me with? I really appreciate your help.  My website link is http://www.reliefpastors.com

I look forward to your response.

 

Thank you.

You mean top banner video?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted (edited)

@tuanphan Yes, that is correct.  🙂

 

I would like to add parrallax to the top "banner" video as well as the "section" videos I currently have. 

The site is a work in progress, as I'm building it from scratch, but the home page is almost complete.

The url is: http://www.reliefpastors.com

I'm finding that you are a wealth of knowledge on these forums when it comes to squarespace css, html, etc...  I sincerely appreciate your willingness to help us all.

Sincerely,

 

@rhett247

Edited by rhett247
I forgot to tag @tuanphan and provide updated url
  • 2 months later...
Posted

My client is asking for the same effect if possible? Not sure why parallax on a video background or section isn't an option? Is it because it's movement upon movement?

Any update on some css to make this happen would be REALLY appreciated! @tuanphan 🙂 TIA

  • 2 weeks later...
Posted
On 2/11/2024 at 1:59 AM, rhett247 said:

@tuanphan I'm new to squarespace.  I've worked in wordpress using Divi Theme Builder most of my life and within that framework setting up parrallax for video backgrounds was rather easy, but as I'm leaning into squarespace I'm noticing it only offers parrallax for background images.   

I'd love to be able to make my background video's parrallax.  Is there any CSS coding you can provide me with? I really appreciate your help.  My website link is http://www.reliefpastors.com

I look forward to your response.

 

Thank you.

 

On 4/14/2024 at 8:40 AM, MakingWaves said:

My client is asking for the same effect if possible? Not sure why parallax on a video background or section isn't an option? Is it because it's movement upon movement?

Any update on some css to make this happen would be REALLY appreciated! @tuanphan 🙂 TIA

 

On 4/14/2024 at 8:40 AM, MakingWaves said:

My client is asking for the same effect if possible? Not sure why parallax on a video background or section isn't an option? Is it because it's movement upon movement?

Any update on some css to make this happen would be REALLY appreciated! @tuanphan 🙂 TIA

 

Tuan figured it out in another thread. Posting it here for visibility:

 

"First, you add a Section with Video Background

Next, use this code to Custom CSS. Replace article>section:first-child with section id

use this free tool to find id. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff"

article>section:first-child {
    height: 100vh !important;
    position: sticky;
    top: 0;
    padding: 0 !important;
}
article>section:first-child video {
    position: fixed !important;
    top: 0 !important;
}
article>section:nth-child(n+2) {
    z-index: 99999 !important;
}

 

  • 1 month later...
Posted (edited)

I cant get this working.

Well, i CAN get it working, but the problem is i lose all dividers in squarespace.

What kinda code do i need to add to include the dividers shown in second screenshot?
 

visualimpression.vip

 

Skärmbild 2024-06-07 014702.jpg

Skärmbild 2024-06-07 015634.jpg

Edited by Baleur
  • 2 months later...
Posted (edited)

I tried using the code and it worked in a clunky way.
But it failed when I needed the effect on 2 videos.

I researched and found the latest way of doing animations and Parallax Effect with a new technology.
Here is the source code https://github.com/sorcamarian/squarespace-tricks/tree/main/Animations/Background Video Parallax

Live demo - desktop - https://abzglobal.net/parallax-demo

I also created a video about it 

 

Edited by sorca_marian
demo link

 👨‍🔧👨‍💻 Squarespace plugins

🙋‍♂️ Squarespace Custom Web Development & Design Services

📅 Todoist alternative | Increase your Productivity 

📹 Squarespace Tutorials for free - YouTube📹 

💯🚀 I have worked on over 300 Squarespace sites with custom code for over 9 years

🙋‍♂️ Let's connect on LinkedIn

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.