jQuery.Animator

未知
JavaScript
跨平台
2008-09-19

A easy way to create animations with jQuery

This plugin provide a easy way to create animations with jQuery and using the central timer from jQuery you don't overload your pages and get the best experience with animations.

<div id="Walker" style="position: relative;left: 0;width: 100px;height: 50px;background: #000;color: #fff">Animation Test</div>

<script language="JavaScript">
<!--
  function AnimateWalker(Walker, GoEnd){
    // Left Walk 1 by 1
    newLeft = parseInt(Walker.css("left")) + 1;
    // Check GoEnd is true to go to end of the animation
    if(GoEnd) newLeft = 400;
    Walker.css("left", newLeft);
    // if the setup left keep less then 400 whe continue the animation
    return (newLeft < 400);
  }

  $(function(){
    $("#Walker").animator(10, AnimateWalker);
  });
//-->
</script>

 

Plugin page:
http://gsaraiva.projects.pro.br/?page_id=44

My site, I use jQuery.Animator ^^
http://gsaraiva.projects.pro.br/

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

暂无博客

返回顶部
顶部