jQuery.Animator

授权协议 未知
开发语言 JavaScript
所属分类 jQuery 插件、 jQuery高级页面组件
软件类型 开源软件
地区 不详
投 递 者 长孙嘉容
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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/

  • animate()使用方法 语法一、$(selector).animate(styles,speed,easing,callback) styles:必需。规定产生动画效果的 CSS 样式和值。 $(“p”).animate({margin:“100px”}); speed:可选。规定动画的速度。默认是 “normal”。 毫秒 (比如 1500)、“slow”、“normal”、“fast” e

  • 语法: $(selector).animate(styles,speed,easing,callback) 第一个参数是必填项,其它均为可选项。 来个小栗子 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width

  • 1、jQuery预制动画 1、显示隐藏 宽、高、透明度同时改变 通常情况下,仅仅就是实现显示隐藏的效果。替换css的display显示和隐藏 jQuery对象.show(speed, easing, callback); 显示 jQuery对象.hide(speed, easing, callback); 隐藏 jQuery对象.toggle(speed, easing, callback); 开

  • jQuery - animate()方法 jQuery提供了anirmate()方法完成自定义动画效果,该方法具有两种用法: 第一种用法 animate(properties,duration,callback) 参数 properties - 表示CSS的样式属性 duration - 表示动画执行的时长 callback - 表示动画执行完毕后的回调函数 <!DOCTYPE html> <ht

  • jQuery 效果 - animate() 方法 jQuery 效果参考手册 实例 改变 "div" 元素的高度: $(".btn1").click(function(){ $("#box").animate({height:"300px"}); }); 亲自试一试 定义和用法 animate() 方法执行 CSS 属性集的自定义动画。 该方法通过CSS样式将元素从一个状态改变为另一个状态。C

  • 自定义动画方法animate() animate(params,[speed],[easing],[fn]) 参数说明: (1)params: 一个包含样式属性及值的映射,比如{property1: “value1”, property2: “value2”, ····· } 要特别注意所有用于动画的属性必须是数字的,除非另有说明; 这些属性如果不是数字的将不能使用基本的jquery功能。比如常见

  •   $( function () {       $( "#box"). animate({ top: 500 , left: 400} , 3000). delay( 2000) ; //花3秒的时间从初始位置漂移到指定位置      $("#box").animate({top:0,left:800},3000); //延迟两秒后又花3秒的时间从漂移到第二个指定位置 $( "#box"). a

  • 如题。         使用jQuery animate的方法能够对某一个元素的css属性执行渐变效果。         执行语句:          $("元素(class或ID)").css({属性初始状态}).stop().animate({元素结束状态}, { duration: 持续时间 });        使用这个语句基本上可以实现很多效果。         例如,让元素从透明到不透

  • 实例 通过改变元素的高度,对元素应用动画: $("button").click(function(){ $("#box").animate({height:"300px"}); }); 定义和用法 animate() 方法执行 CSS 属性集的自定义动画。 该方法通过 CSS 样式将元素从一个状态改变为另一个状态。CSS属性值是逐渐改变的,这样就可以创建动画效果。 只有数字值可创建动画(比如 “m

  • 1.jQuery animate() 方法用于创建自定义动画   语法: $(selector).animate({params},speed,callback); 必需的 params 参数定义形成动画的 CSS 属性。 可选的 speed 参数规定效果的时长。它可以取以下值:"slow"、"fast" 或毫秒。 可选的 callback 参数是动画完成后所执行的函数名称。 下面的例子演示 an

  • .animate( style, time, easing, callBackFn): 给绑定的元素执行相对应的css动画; style:要执行css的动画样式;必选 time:执行的时间(从开始到结束的时间);可选 easing:动画以什么样的方式执行(慢----slow、快----fast、匀速-----linear、先快后慢 ··· );可选 callBackFn:动画执行完后的回调函数。可

  • 语法: $( selector ).animate({ params }, speed, callback); selectot 必需的参数,一般使用某个选择器,用来寻找到执行动画的元素。 params 必需的参数,元素执行动画时改变的css样式。 speed 可选参数,元素执行动画所需时间。 callback 可选参数,元素动画完成后所执行的函数名称。 $("div").animate({l

  • 实例 改变 "div" 元素的高度: $(".btn1").click(function(){ $("#box").animate({height:"300px"}); }); <html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"

  • html: <button>点击我</button> <p>如果你想在一个涉及动画的函数之后来执行语句,请使用callback函数</p> <div class="panel"></div> <div class="content"></div> css部分: 注意:使用animate函数时,为了能够影响元素的 top bottom left right 属性值,

  • jQuery animate() 方法 jQuery animate()方法用于创建自定义动画。 以下示例演示了animate()方法的简单用法; 它将<div>元素向右移动,直到它达到250px的left属性: <!DOCTYPE html> <html> <meta charset="UTF-8"> <title>jq</title> <head> //此版本是百度cdn 1.11.1,当