Jump to content
Search Community

How do I move the background image inside a div vertically using scroll trigger, where the background attachment is fixed based on the scrollbar movement?

vinayskolkare test
Moderator Tag

Recommended Posts

 

<iframe height="300" style="width: 100%;" scrolling="no" title="Untitled" src="https://codepen.io/popjrluq-the-selector/embed/dyrgXea?default-tab=html%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
  See the Pen <a href="https://codepen.io/popjrluq-the-selector/pen/dyrgXea">
  Untitled</a> by vinay kumar (<a href="https://codepen.io/popjrluq-the-selector">@popjrluq-the-selector</a>)
  on <a href="https://codepen.io">CodePen</a>.
</iframe>

 

Hi, above is my code i am not able to find any resources on this topic, any help would be really appreciated..

See the Pen dyrgXea?default-tab=html%2Cresult by popjrluq-the-selector (@popjrluq-the-selector) on CodePen

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...