【发布时间】:2017-08-20 17:44:44
【问题描述】:
我通过 npm install animate.css --save 安装了 Animate.CSS,并将其保存在本地包中的 ./node_modules 中。
当我阅读 Github 中的 Animate.CSS 文档时,它说只需在我想要制作动画的元素中添加诸如 fadeInDown, bouceInDown...etc 之类的类名,但我不知道需要一个类名来自本地包。
问题:我们如何从 Animate.CSS 本地包中获取类名并将其添加到 ReactJs 组件中?
假设:我有一个如下的反应组件,我想将类名添加为animated bounceIn。
export class SimpleInfo extends React.Component {
render() {
return(
<div>My information</div>
)
}
}
【问题讨论】:
标签: css node.js reactjs npm-install