niflheim:轻松动画安装卸载 React 组件

时间:2021-05-29 12:13:22
【文件属性】:
文件名称:niflheim:轻松动画安装卸载 React 组件
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-29 12:13:22
JavaScript 尼福尔海姆 一种在 React 中为安装和卸载组件设置动画的微小、简单且可靠的方法,能够根据需要反转动画方向。 如何使用 通过npm i niflheim安装。 选择是通过 css transition属性还是通过 css animation ,并使用相应的 Niflheim 组件来包装要设置动画的子项( Transitioned vs Animated )。 与安装转换的所有实现一样:所有孩子都需要一个独特的有意义的key 例子 import { Animated , Transitioned } from 'niflheim' // 'key' prop is essential // Requires that your stylesheet contains classes for: // .entering .exiting .before_enter .entered .
【文件预览】:
niflheim-master
----.gitignore(35B)
----.babelrc(226B)
----package.json(918B)
----src()
--------Animated.js(801B)
--------shared.js(3KB)
--------index.js(397B)
--------Transitioned.js(1KB)
----index.js(4KB)
----rollup.config.js(665B)
----README.md(3KB)
----tests()
--------niflheim.test.js(3KB)
----.npmignore(0B)

网友评论