Jump to content
Search Community

Simple position & ease animation

lostbythelake test
Moderator Tag

Go to solution Solved by lostbythelake,

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

I'm just getting my feet wet with GreenSock and already I can't get my animations right.  I can't tell whether it's a syntax error or if my html editor previews are set to show them correctly? I'm using Dreamweaver CS6 and Coda2 and neither appears to be showing any animation. So I have to believe that the issue is is my code.  Here is what I've got so far in terms of Javascript:

 

<script type="text/javascript" src="TweenMax.min.js"></script>
        <script type="text/javascript">
(function(){
 
var tl1 = new TimeLineMax();
 
tl1.from('#myAd_txt2', 1.3, { top: -100, ease: Power2.easeOut });
 
}());
 
</script>
 
All I'm trying to do is move a txt object down and having it ease to a stop. I'm following this tutorial and I've double and triple checked and I can't figure what I did wrong here.  Any tips would be greatly appreciated. I've also attached the entire HTML file if that helps any.
 
Thank you in advance for your time and help.

 

 

banner_ad.html

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