Jump to content
Search Community

Overthane

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Overthane

  1. @OSUblake @nicofonseca Thank you for the speedy and thorough replies! I get what you guys mean, but what I really wanted to do was use the value that is already stored in a css variable to animate a property to that value. But thinking about it I guess it really must not be worth the effort, as I would probably have to track changes to that variable anyway in JS (I think?). There's probably a good reason that this doesn't run as I'm envisioning! haha Thanks again, and happy Friday all!
  2. Hi y'all, I'm trying to animate something by using the value stored inside a CSS variable as a value of the `height` property in `GSAP.to`. I'm aware that you can reassign value to CSS variables as part of a GSAP animation (not sure the correct term for that, just seen it in a few posts). Please see my minimal example in the CodePen. The square/rectangle is my attempt at using the variable as a value, and as you can see no animation occurs. The circle is using plain pixels animation, which works as expected. I'm currently using the latest Chrome browser, on MacOS Catalina. Thanks in advance!
×
×
  • Create New...