Jump to content
Search Community

Element changes position with pin: true

DMT82 test
Moderator Tag

Recommended Posts

Hi,

Im trying to pin the header until it comes to an end, and after the pinning comes to scroller-end, i want it to start to fade away with opacity: 0.
But when I add pin: true or pin: "#header-text", the whole header changes positin from center of the site to top left.
Why do it change position and how can I start another animation/fade when the pinning comes to an end?


Thank you.

See the Pen rNezqbe by DMT82 (@DMT82) 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...