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://HdhCmsTestopen-open测试数据/lib/view/home/1434012030223
查看更多关于CSS与SVG动画库:AnimatePlus_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did113523