简体   繁体   English

我可以只使用 JavaScript 和 CSS 在 react.js 中制作自定义动画吗?

[英]Can I make in react.js custom animations, using only JavaScript and CSS?

I am wondering if is possible, in React.js, to make animations from scratch using only JavaScript and CSS.我想知道是否有可能在 React.js 中仅使用 JavaScript 和 CSS 从头开始​​制作动画。 And if it is possible can someone direct me to some documentation or tell me how?如果可能的话,有人可以指导我查看一些文档或告诉我如何操作吗?

Thank you in advance.先感谢您。

You can use the styled-components library.您可以使用样式组件库。 Styled Components is an alternative CSS enhancement for designing components in React. Styled Components 是一种用于在 React 中设计组件的替代 CSS 增强。

You can read the documentation about the library's animations here .您可以在此处阅读有关库动画的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM