STIC:Atelier graphisme, animation, interactivité et HTML5/Simple animation JS avec GSAP

De EduTech Wiki
< STIC:Atelier graphisme, animation, interactivité et HTML5
Révision datée du 24 mars 2015 à 21:09 par Daniel K. Schneider (discussion | contributions) (Page créée avec « <source lang="HTML5"> <!doctype html> <html> <head> <title>Simple animation with GSAP</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche
<!doctype html>
<html>
  <head>
      <title>Simple animation with GSAP</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <script type="text/javascript" src="src/minified/plugins/CSSPlugin.min.js"></script>
      <script type="text/javascript" src="src/minified/easing/EasePack.min.js"></script>
      <script type="text/javascript" src="src/minified/TweenLite.min.js"></script>
      <script>
	window.onload = function() {
	 var thing = document.getElementById("thing");
         TweenLite.to(thing, 3, {left:"600px", ease:Bounce.easeOut});
	}
      </script>
  </head>
  <body>
    <!-- define a box within which the thing will move -->
    <div id="easeWrapper" style="width:800px">
      <span id="thing" style="position:relative; border-style:solid; background:yellow">HELLO</span>
    </div>
  </body>
</html>