Jump to content
Search Community

Animating Dynamic CSS variables

elegantseagulls test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

Is it possible to animate index-based "dynamic" CSS Vars? I'm tying to access the vars in a loop based on index, but GSAP is telling me it's an invalid property... Is there any way around this? I'd like to do it this way (css vars) as there will be many objects and several containers I'd like to animate with the least amount of overhead.

 

See the Pen LYxMyee?editors=1111 by elegantseagulls (@elegantseagulls) 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...