Jump to content
Search Community

Pinning logo and its section to header after DomContentLoaded Construction

RandyHowk

Recommended Posts

Posted

Here is the demo, I've got everything just about where I want it except I'd like for the logo, and its section to move to the top and be pinned there after its construction triggered by "DomContentLoaded" while the other sections scroll as they do now below it. Sure this is a simple thing to do but not having luck moving anything with the .to method.

Thanks for the help this is pretty cool, taking me back to my flash days!

See the Pen pvooMMd by RandyHowk (@RandyHowk) on CodePen.

Posted

Rodrigo, 
Thanks! It looks like they are using Flip to move and scale the logo, which I wouldn't have thought of immediately. I just have to adjust to have it happen sequentially after load and logo complete, not Scrolltrigger. And of course Pin it indefinitely to the top. Thanks this moves me closer!

  • 2 weeks later...
Posted

Hi,

 

I'm getting this when I try to open that link:
PKQLqnf.png

As we understand that creating a Stackblitz demo from a repo is fast and easy, unfortunately we can't update and save changes in those code bases, that is why we ask for a minimal demo that clearly illustrates the issue.

 

Finally be sure to use our useGSAP hook when working in React/Next:

https://gsap.com/resources/React

 

Happy Tweening!

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