Jump to content
Search Community

ho i can pin a sub element on scrolling

Guest
Moderator Tag

Go to solution Solved by Visual-Q,

Recommended Posts

Hello leenal,  welcome to the forum.

I’m sure that you will find it helpful.

there are plenty of experts who know more than me and thats a very interesting example that you raise.

i notice that you are using css transform and scroll trigger so I would be inclined to drop the css transform and do it all in green sock.
I would also be inclined to make  things simple and build an animation without using scroll Trigger as a starting point.
the basic essence seems to be a simple rotation of a complex div about an external pivot point.
Perhaps someone might have an example that they prepared earlier.

 

 

 

 

Link to comment
Share on other sites

  • Solution

I quite like that effect from the site you showed:

 

https://www.ecwid.com/?fbclid=IwAR2ygAek1LtYvPiQbq2x8P9vOfmzGO4zKM8sQRNVySt29cSApJB2O71JtaY

 

So I figured it was a good excuse to practice my ScrollTrigger and transform skills. Kind of finicky working out the css, there's a few different ways you coudl approach that. This seems to work pretty well.

See the Pen RwadBgG by Visual-Q (@Visual-Q) on CodePen

  • Like 4
Link to comment
Share on other sites

  • 4 months later...

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