We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
借鉴自人人网 FED 的《怎么实现一个3d翻书效果》
主要整理 css3 的 animation 及 transform
animation
transform
参考:https://segmentfault.com/a/1190000014382426
https://stackoverflow.com/questions/2943140/how-to-swap-html-elements-in-javascript
// 改写 querySelector let $ = document.querySelector.bind(document) // 像使用 jquery $一样使用 $(seletor)
normal
alternate
forwards
backwards
both
n
infinite
The text was updated successfully, but these errors were encountered:
16slowly
No branches or pull requests
借鉴自人人网 FED 的《怎么实现一个3d翻书效果》
主要整理 css3 的
animation
及transform
最终效果
思路
Dom Stacking Context
参考:https://segmentfault.com/a/1190000014382426
Dom 操作
https://stackoverflow.com/questions/2943140/how-to-swap-html-elements-in-javascript
1. 获取节点:
2. DocumentFragment
3. 属性处理:
4. Dom Event
CSS
animation
normal
(正常播放) |alternate
(反向播放), 动画是否轮流反向播放。forwards
(保留动画在最后一个属性值,最后一帧) |backwards
(animation-delay 所规定的启动时的属性值将设置为第一帧的样式) |both
(同时)n
|infinite
, 动画执行次数。CSS
transform
任务管理机制
The text was updated successfully, but these errors were encountered: