Jump to content
Search Community

PRE and POST pinning animations

evomedia.lt

Go to solution Solved by Rodrigo,

Recommended Posts

evomedia.lt
Posted

I'm building an app that has some slides scrolling along with page, however, to make the transition to pinned elements smoother I need pre and post pinning animations.

 

I've built a quick example of my solution, and would like to know if there's more elegant/optimal way to do this?

Any input appreciated.

See the Pen Poxavdv by driezis (@driezis) on CodePen.

GSAP Helper
Posted

If it works just the way you intended and you are happy with it, I don't think there would be much reason to change anything.

 

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting.

Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

  • Like 1
evomedia.lt
Posted
On 7/21/2023 at 4:06 PM, GSAP Helper said:

If it works just the way you intended and you are happy with it, I don't think there would be much reason to change anything.

 

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting.

Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

Oh, I have no issue with this - it's just that it looks more like a workaround than a solution so I was wondering if I'm missing some core GSAP mechanics of doing this.

Particularly - the ease-in and ease-out from a scrollTrigger pinned animation (before and after it is pinned). 

 

Thanks for the response either way.

  • Solution
Posted

Hi,

 

I looked at your code and more important, how is working on the browser and I can't spot anything that looks odd to me. If it ain't broken don't fix it, right? ;)

 

Happy Tweening!

  • Thanks 1

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