css3 3d effects and animation learning

高洛峰
Release: 2016-10-14 15:06:31
Original
1402 people have browsed it

css reference manual:

http://www.phpstudy.net/css3/

http://www.css88.com/book/css/

呈现3d效果:
-webkit-transform-style:preserve-3d;

透视距离:
-wenkit-perspective:300;

视角:
-webkit-perspective-origin:25% 75%;/*数字正负均可*/

旋转和变换:
transform: translatex(-90px) translatez(90px) rotatey(90deg);
/*rotateX旋转X轴,rotateY旋转Y轴,rotateZ旋转Z轴
translateX,translateY,translateZ在XYZ轴上移动
scaleZ(sz)Z轴缩放
*/


旋转页面要先设置position: absolute;使其脱离文档流。


动画效果:
animation /*简写属性,用于设置动画。*/
-webkit-transform-origin: 90px 90px 90px;/*设置旋转基准点*/
@keyframes/*设置动画*/
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template