您好,欢迎访问一九零五行业门户网

CSS与SVG动画库:Animate Plus_html/css_WEB-ITnose

animate plus是一个高性能的 javascript 库,能够帮助你构建动画效果的css 属性和 svg 属性animate plus 是非常适合快速 ui 交互的,同时也适合台式和移动设备上更长的动画序列。示例:
css spring animations on dom elements simple svg morphing animation performance/stress test (250 svg shapes animated independently) getting started npm install animateplusor download and insertanimate.min.js(2.7kb gzipped) :

start animating things:
animate({ el: div, translatex: 100, opacity: .5, duration: 500 });
api arguments animateaccepts either anobjector amapcontaining at least an element and a property to animate:
animate({ el: div, opacity: 0 }); // or: var params = new map();params.set(el, div);params.set(opacity, 0);animate(params);
el the elements to animate.elcan either take a:
css selector:div jquery-like object:$(div) dom element:document.queryselector(div) array of dom elements:[document.queryselector(div)] nodelist or htmlcollection:document.getelementsbytagname(div) 项目主页:http://www.open-open.com/lib/view/home/1434012030223
其它类似信息

推荐信息