Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
jimeast

2 closing body tags in GSAP step by step training

Go to solution Solved by Carl,

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 going through the example code that was included on the nobel desktop Class Files CD.  I notice in some examples they have 2 closing body tags.  Was that intended?

 

 

<body>
<div id="speedGauge">
    <img id="pointer" src="img/pointer.png" height="9" width="89">
    <img id="center" src="img/disc.png" height="41" width="40">
</div>
 
</body>
<!-- load scripts after dom has been rendered -->
<script src="js/gsap/TweenLite.js"></script>
<script src="js/gsap/plugins/CSSPlugin.js"></script>
<script src="js/gsap/easing/EasePack.js"></script>
<script src="js/jquery/jquery-1.10.1.min.js"></script>
 
 
<script>
    $(document).ready(function() {
        
        var $pointer = $("#pointer"),
            $gauge = $("#speedGauge");        
        
    });
</script>

</body> 

Link to comment
Share on other sites

  • Solution

They should only have the last closing body.

Thanks for pointing it out.

Will fix in next release.

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