Jump to content
Search Community

Add duration/easing to pinning

JJJ test
Moderator Tag

Recommended Posts

Hello JJJ

 

40 minutes ago, JJJ said:

Is it possible to add duration and easing to this type of pinning?

 

I'm not sure what exactly it is you mean by duration and easing.

 

Since there is nothing being actually animated/tweened in this example, if you wanted to add either of the afore-mentioned, you would probably have to re-create that example so it uses a tween for the layering instead of it just natively scrolling - then you could.

 

Or you could add some overall smooth-scrolling to the whole page to give it a different feel - like with the brand new ScrollSmoother Plugin (for Shockingly Green and above Club-Members).

 

https://greensock.com/scrollsmoother/

 

See the Pen vYpRWVZ by akapowl (@akapowl) on CodePen

 

  • Like 3
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...