Jump to content
Search Community

prateek

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by prateek

  1. <html>

    <head>

     

     

    <link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>

     

    <style>

     

    .div2{position:absolute;height:100px;width:2px;background:black;left:600px;top:250px;}

    </style>




    </head>

     

    <body>

    <div class="div2"></div>

     

    <script>

    var $box2= $(".div2");

     

    $(document).ready(function(){

     

    TweenMax.to($box2, 4, {rotation:"10",transformOrigin:"left top",ease:Linear.easeNone});

    TweenMax.to($box2, 4, {delay:"4",rotation:"-10",transformOrigin:"left top",repeat:-1, yoyo:true,ease:Linear.easeNone});

     

    })

     

    function moveBox() {

     

     

    }

     

    $(window).on('load', moveBox);

     

    </script>

    </body>

    </html>

×
×
  • Create New...