Jump to content
Search Community

Way to animate single color channel?

thanatos_proto test
Moderator Tag

Recommended Posts

There are many ways you could do that...

  1. use the gsap.utils.splitColor() utility method to get the current value and then create an rgb() accordingly:

    See the Pen gOBRYOL?editors=0010 by GreenSock (@GreenSock) on CodePen

  2. Or use a CSS variable: 

    See the Pen WNaOeNX?editors=0010 by GreenSock (@GreenSock) on CodePen

There are a bunch of other ways too, but I don't want to overwhelm you :)

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