Jump to content
Search Community

CSS parameter : change during the animation

jbonlinea test
Moderator Tag

Recommended Posts

Hi,

 

in order to provide a smooth feedback to the user, I wanted to change some CSS parameter during the animation.

 

When static, my element have an opacity of 1, but I would like their opacity to be 0.5 during the animation. Well obviously I would like the opacity to go from 1 to 0.5 and back to 1 during the animation.

 

After some search on the forum I couldn't come up with a better solution than that :  toggle a/some class.es that contain some transform with duration and delay to time the change. However it seems very inelegant, and problem prone.

 

Is there a proper/elegant way to implement this with gsap or idealy within a flip animation set with the flip pug-in ?

 

on the pen attached,  the opacity change would apply to the .box elements

 

Thank's in advance for your hindsight

See the Pen 38e53f4da66c134a385f3d74dec6374f by GreenSock (@GreenSock) 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...