Jump to content
Search Community

I can't seem to get a div moving.

rotaercz test
Moderator Tag

Go to solution Solved by gosu,

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 everyone!

 

This is my first post here. This is probably a very easy question but I can't seem to get a single div to do anything.

 

html

 

    <img data-name="test" src="test.jpg" width="200" height="283">

 

javascript:

 

    var mydiv = $('img').find('[data-name=test]');

    TweenMax.to(mydiv, 2, {css:{height:"400px", width:"283px"}, ease:Linear.easeNone});
 
I have the above code in an external javascript file. I'm trying to get an image to increase in width and height just for test purposes to get things rolling. I've declared jquery.min.js, TweenMax.min.js, jquery.gsap.min.js. Jquery works fine but I can't seem to get TweenMax to do anything. Can someone help me figure out how to get a helloworld going for GSAP? Any help would be greatly appreciated.
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...