Jump to content
Search Community

Should I use GSAP animation or CSS directly ?

JoffreyPersia test
Moderator Tag

Recommended Posts

Hi guys, 

I am here again ^^

I really got through JS after 2 weeks doing that all day long...
but I got an other question. 
I have this codepen. I would like to animate the metabox (blue) in height when I open it. 
I don't know if I should use GSAP or CSS directly.

GSAP seems to work very well with the height animation and I can create a timeline for example : 
- Display none
- max-height 0 / padding 0
- max-height 9999px

Or maybe an other function ? 

thank you in advance ! 

See the Pen KKvjXJp by pixelmort27 (@pixelmort27) on CodePen

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