Jump to content
Search Community

Getting acclimated with GSAP

pikemilsner test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Howdy, 

 

I've just recently started learning and playing with GSAP. Anyone able to guide me in the right direction to fix up the attached Pen? 
 

Specifically, I'm having trouble:

  1. Reversing only the active / open modal's timeline (or, eventually I'll have a dedicated timeline for the closing animation, if that's easier) 
  2. This is off topic I'm guessing but I'm also attempting to stick the non active modal in place on the page. The goal is when a modal is active, the inactive "inline" modals don't shift positioning. I understand I could do this by using standalone buttons which launch hidden content but I'm hoping to get more of a card-to-modal than a button > launch modal effect.

 

 

See the Pen pLXzrO by pikemilsner (@pikemilsner) on CodePen

 

Cheers,

--

mp 

See the Pen pLXzrO by pikemilsner (@pikemilsner) on CodePen

Link to comment
Share on other sites

Hi @pikemilsner :)

 

Welcome to the forum and thanks for joining Club GreenSock.

 

We've had several discussions about modals that I think can guide you on your project. Here's a recent one from @Sahil

 

This thread is about hero transitions and making a div go full screen, but should give you some ideas. @OSUblake drops some awesome knowledge.

You can also search the forum for modals and should find several threads with many ideas. 

 

Hopefully that gets you started. Happy tweening and welcome aboard.

:)

 

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