Jump to content
Search Community

Simple Way to Tween Brightness in GSAP?

soupking test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi everybody,

 

This is a general question with no codepen. What I want to do is this:


 

TweenMax.from(img1, .25, {brightness: 3});

 

I found this codepen, it's like an object in an object in an array..???...:

See the Pen LNzPVK by rhernando (@rhernando) on CodePen

 

Plus, it's using JQuery.

 

Do I have to do things this way? And do I have to use JQuery (sans rollover)? Assigning a brightness value to the DIV value I'm assigning the brightness values to is confusing. 

 

I don't mind being redundant starting out, but this is hard to grasp all bundled at once. Is there a more dumbed down basic example just to tween brightness out there? Peeling this one apart is kind of tricky. 

 

Thanks for reading.

 

 

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