Short_Animation_using_React

时间:2021-03-08 15:32:31
【文件属性】:
文件名称:Short_Animation_using_React
文件大小:194KB
文件格式:ZIP
更新时间:2021-03-08 15:32:31
JavaScript 使用React制作动画 使用useRef()钩子的动画; const inputEl = useRef(null); inputEl.current.focus(); 使用liabry制作动画 $ yarn add @ wellyshen / use-web-animations 或者 $ npm install --save @ wellyshen / use-web-animations 使用以下方法 `` const { ref, playState, getAnimation } = useWebAnimations({}); const { ref } = useWebAnimations({ ...bounce }); const { ref, animate } = useWebAnimations({});
【文件预览】:
Short_Animation_using_React-master
----.gitignore(310B)
----package.json(979B)
----package-lock.json(685KB)
----src()
--------WebAnimation1.js(1KB)
--------setupTests.js(241B)
--------WebAnimation2.js(436B)
--------index.js(500B)
--------logo.svg(3KB)
--------App.js(459B)
--------reportWebVitals.js(362B)
--------App.css(564B)
--------index.css(366B)
--------App.test.js(246B)
--------Useref.js(458B)
----public()
--------robots.txt(67B)
--------logo192.png(5KB)
--------index.html(2KB)
--------favicon.ico(4KB)
--------manifest.json(492B)
--------logo512.png(9KB)
----README.md(484B)

网友评论