AniXcss3 动画组件
AniX 是一款高性能的 css3 动画组件。
它非常简单和易于使用. 同时又具有很好的兼容性。
It uses the native css transition attribute, better than js simulation animation performance. And you can also enable hardware acceleration with it.
安装和使用
import { AniX } from 'anix';
AniX.to(dom, 1, { x: 300, y: 10, scale: 2, delay: 0.5, onComplete: function(){ alert("over"); } }); // or AniX.to(dom, 1, { "width": "200px", "background-color": "#ffcc00", "ease": AniX.ease.easeOutBack, "onComplete": () => { //STATE : COMPLETED! console.log("STATE : COMPLETED!"); } });
jQuery plug-in usage anix.jq.js
$('.demo').css({'left':'0px'}).to(.5, { 'left': '500px', 'background-color': '#ffcc00' });
Use in react(v16+)
class MyComponent extends React.Component { constructor(props) { super(props); this.myRef = React.createRef(); this.clickHandler = this.clickHandler.bind(this); } clickHandler(e) { const node = this.myRef.current; // animation AniX.to(node, 1, { x: 300, y: 10, scale: 2 }); } render() { return ( <div> <div ref={this.myRef} /> <button onClick={this.clickHandler}></button> </div> ); } }
评论
AniXcss3 动画组件
AniX是一款高性能的css3动画组件。它非常简单和易于使用.同时又具有很好的兼容性。Itusesthenative csstransition attribute,betterthanjssimul
AniXcss3 动画组件
0
MotionJavascript动画组件
这是名为Motion的Javascript动画组件。它能够帮助您不依赖Javascript框架即可简单、高效地完成复杂的动画效果。特性高效率、不依赖任何Javascript框架经过严格的测试,可信赖苗
MotionJavascript动画组件
0
android-flipAndroid 翻页动画组件
android-flip是用在Android上的翻页动画组件,它和用在iPhone/Android上的Flipboard有相似的功能。
android-flipAndroid 翻页动画组件
0
MMMaterialDesignSpinneriOS 转圈动画组件
MMMaterialDesignSpinner是一个iOS活动转圈,模仿Google的MaterialDesignSpinner。
MMMaterialDesignSpinneriOS 转圈动画组件
0
android-flipAndroid 翻页动画组件
android-flip 是用在 Android 上的翻页动画组件,它和用在 iPhone/Andr
android-flipAndroid 翻页动画组件
0
MMMaterialDesignSpinneriOS 转圈动画组件
MMMaterialDesignSpinner 是一个 iOS 活动转圈,模仿 Google 的 M
MMMaterialDesignSpinneriOS 转圈动画组件
0