Jump to content
Search Community

hover

Guest newdevide
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

Guest newdevide
Posted

Hey, anyone how to use the tweenMax tools on hover? I tried to put it on css style (YUP, thougt it might work), but it didn't work. Any idea how to apply hover without editing through css?

Posted

You'd need to listen for an event like onmouseover but it's a little tricky because not all browers dispatch those events in exactly the same way, so if you want to go the easier route just use jQuery because it handles the browser differences for you.

 

$("#YourObjectID").hover(function() {
TweenMax.to(...); //your tween here.
});

 

http://api.jquery.com/hover/

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