Jump to content
Search Community

Help am new! where am going wrong

AKA\'77 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

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>Untitled Document</title>

 

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>

<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

 

<script src="jquery-1.10.1.min.js"></script>

 

 

<script src="TimelineLite.min.js"></script>

<script src="TweenMax.min.js"></script>

<script src="TweenLite.min.js"></script>

<script src="jquery.gsap.min.js"></script>

<script src="CSSPlugin.min.js"></script>

 

 

<script>

window.onload = function(){

    var logo = document.getElementById("logo");

    TweenLite.to(logo, 6, {top:"632px"});

}

</script>

 

</head>

 

<body>

<div id="logo" style="background:#98bf21;height:100px;width:100px;margin:6px;">

 

 

</body>

</html>

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

Glad you are taking GSAP for a spin.

 

I'm guessing you just need to give your #logo position absolute or relative (which is needed in order to change top or left properties).

 

Take a look at the html/css/js here: http://codepen.io/GreenSock/pen/dgmia

 

All of the Jump Start demos are here http://codepen.io/collection/ifybJ/

Link to comment
Share on other sites

You've also included a few too many scripts. You only need the following scripts

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

<!--<script src="jquery-1.10.1.min.js"></script>-->

<!--<script src="TimelineLite.min.js"></script>-->
<script src="TweenMax.min.js"></script>
<!--<script src="TweenLite.min.js"></script>-->
<script src="jquery.gsap.min.js"></script>
<!--<script src="CSSPlugin.min.js"></script>-->

(jQuery only needs to be included once, and the TweenMax.js file contains TimelineMax, TimelineLite, TweenMax, TweenLite, CSSPlugin, and more)

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