Jump to content
Search Community

How to scroll only the background position of the image inside the fixed container? please help

vinayskolkare test
Moderator Tag

Recommended Posts

You have to make sure that everything you want to pin is inside a container that you use as the pin container. Then all your code works as expected. (I've also set clamp() around your start, so that it only starts when the visitor starts scrolling. Hope it helps and happy tweening! 

 

 

See the Pen GReaQNL by mvaneijgen (@mvaneijgen) on CodePen

Edited by mvaneijgen
update pen url
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

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

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...