100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > css3相册图片3D旋转展示特效【HTML】

css3相册图片3D旋转展示特效【HTML】

时间:2019-04-21 09:58:10

相关推荐

css3相册图片3D旋转展示特效【HTML】

web前端|html教程

css3相册图片3D旋转展示特效

web前端-html教程

查看效果:/texiao/css/14/

优惠券网站模板源码,vscode切换窗口的,ubuntu引导类型,改tomcat的编码,爬虫矩阵,php实现进度条,安徽实力强的seo,哪些网站php设计源码比较好,wp响应式网络公司模板lzw

本效果用css3的animation实现动画

技术导航网源码,vscode光标失去,ubuntu 星星,tomcat没启动,qt中使用sqlite库,wordpress漂浮广告插件,移动ui设计是前端开发框架,基于scrapy的网络爬虫论文,php 取时间函数,南昌seo优化如何,资料分享网站整站,oa网页模板,有创意的婚纱网站模板下载lzw

定义和用法

animation 属性是一个简写属性,用于设置六个动画属性:

animation-name

animation-duration

animation-timing-function

animation-delay

animation-iteration-count

animation-direction

注释:请始终规定 animation-duration 属性,否则时长为 0,就不会播放动画了。

微信小程序签到源码,vscode如何调试小程序,ubuntu 怎么重启,tomcat缓存文件在哪,爬虫软件报价,php过滤乱码,seo正确优化方法推广渠道,淘宝网站asp源码下载,虚拟币交易网站模板lzw

默认值: none 0 ease 0 1 normal

继承性: no

版本: CSS3

JavaScript 语法: object.style.animation=”movehovertree 5s infinite”

语法

animation: name duration timing-function delay iteration-count direction;

animation-name 规定需要绑定到选择器的 keyframe 名称。。

animation-duration 规定完成动画所花费的时间,以秒或毫秒计。

animation-timing-function 规定动画的速度曲线。

animation-delay 规定在动画开始之前的延迟。

animation-iteration-count 规定动画应该播放的次数。

animation-direction 规定是否应该轮流反向播放动画。

示例:/texiao/css/14/1.htm

图片旋转代码如下:

CSS3女神来袭 - 何问起body {margin: 0;background: #000;}#wrap {width: 300px;height: 400px;position: relative;margin: 100px auto;-webkit-perspective: 3000px;-moz-perspective: 3000px;-ms-transform: perspective(3000px);-ms-perspective: 3000px;}#head {width: 100%;height: 100%;position: absolute;-webkit-transform-style: preserve-3d;-webkit-animation: donghua 15s linear 0s infinite;-moz-transform-style: preserve-3d;-moz-animation: donghua 15s linear 0s infinite;-ms-transform-style: preserve-3d;-ms-animation: donghua 25s linear 0s infinite;}#head div {position: absolute;top: 0;left: 0;width: 300px;height: 400px;border: 1px solid red;text-align: center;line-height: 100px;}#head div:nth-child(1) {-webkit-transform: rotateY(0deg) translateZ(400px);-moz-transform: rotateY(0deg) translateZ(400px);-ms-transform: rotateY(0deg) translateZ(400px);background: url(/texiao/css/14/hovertreepic/01.jpg);background-size: cover;}#head div:nth-child(2) {-webkit-transform: rotateY(36deg) translateZ(500px);-moz-transform: rotateY(36deg) translateZ(500px);-ms-transform: rotateY(36deg) translateZ(500px);background: url(/texiao/css/14/hovertreepic/02.jpg);background-size: cover;}#head div:nth-child(3) {-webkit-transform: rotateY(72deg) translateZ(400px);-moz-transform: rotateY(72deg) translateZ(400px);-ms-transform: rotateY(72deg) translateZ(400px);background: url(/hvtimg/11/9rour12a.jpg);background-size: cover;}#head div:nth-child(4) {-webkit-transform: rotateY(108deg) translateZ(500px);-moz-transform: rotateY(108deg) translateZ(500px);-ms-transform: rotateY(108deg) translateZ(500px);background: url(/texiao/css/14/hovertreepic/04.jpg);background-size: cover;}#head div:nth-child(5) {-webkit-transform: rotateY(144deg) translateZ(400px);-moz-transform: rotateY(144deg) translateZ(400px);-ms-transform: rotateY(144deg) translateZ(400px);background: url(/texiao/css/14/hovertreepic/05.jpg);background-size: cover;}#head div:nth-child(6) {-webkit-transform: rotateY(180deg) translateZ(500px);-moz-transform: rotateY(180deg) translateZ(500px);-ms-transform: rotateY(180deg) translateZ(500px);background: url(/texiao/css/14/hovertreepic/06.jpg);background-size: cover;}#head div:nth-child(7) {-webkit-transform: rotateY(216deg) translateZ(400px);-moz-transform: rotateY(216deg) translateZ(400px);-ms-transform: rotateY(216deg) translateZ(400px);background: url(/texiao/css/14/hovertreepic/07.jpg);background-size: cover;}#head div:nth-child(8) {-webkit-transform: rotateY(252deg) translateZ(500px);-moz-transform: rotateY(252deg) translateZ(500px);-ms-transform: rotateY(252deg) translateZ(500px);background: url(/texiao/css/14/hovertreepic/08.jpg);background-size: cover;}#head div:nth-child(9) {-webkit-transform: rotateY(288deg) translateZ(400px);-moz-transform: rotateY(288deg) translateZ(400px);-ms-transform: rotateY(288deg) translateZ(400px);background: url(/hvtimg/11/6j9j6tk5.jpg);background-size: cover;}#head div:nth-child(10) {-webkit-transform: rotateY(324deg) translateZ(500px);-moz-transform: rotateY(324deg) translateZ(500px);-ms-transform: rotateY(324deg) translateZ(500px);background: url(/hvtimg/12/wfevf6yh.jpg);background-size: cover;}@-webkit-keyframes donghua {0% {transform: rotateX(5deg) rotateY(360deg);}50% {transform: rotateX(-5deg) rotateY(180deg);}100% {transform: rotateX(5deg) rotateY(0deg);}}@-moz-keyframes donghua {0% {transform: rotateY(10deg) rotateY(0deg);}50% {transform: rotateY(-10deg) rotateY(180deg);}100% {transform: rotateY(10deg) rotateY(360deg);}}@-ms-keyframes donghua {0% {transform: rotateY(10deg) rotateY(0deg);}50% {transform: rotateY(-10deg) rotateY(180deg);}100% {transform: rotateY(10deg) rotateY(360deg);}}a{color:white}

图片立体旋转首页 特效原文 Demo 2

更多:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。