1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 前端特效之520表白神器-旋转照片墙

前端特效之520表白神器-旋转照片墙

时间:2024-06-24 18:49:55

相关推荐

前端特效之520表白神器-旋转照片墙

每日编程|css知识

表白神器

每日编程-css知识

520马上到了,教大家一手表白神器,单身的程序员们感觉学起来,很简单。

php多用户留言板源码,ubuntu系统串口编程,tomcat不刷新会怎么样,网站爬虫干的,php常用的调度任务后台管理,雅客seolzw

制作步骤:

带搜索内容的网站源码,vscode表格怎么居中,ubuntu窗口闪烁,tomcat修改443端口,sqlite数据库忘记密码,13岁小孩突然爬虫子怎么办,php 数字 字符串相加,建站有seo功能吗,易语言取网站标题,倒计时促销模板lzw

1. 新建代码目录,新建文件index.html,将以下代码拷贝到文件中

卖料网站源码,根文件定义ubuntu,爬虫代码如何报错,自学php茫然,php seo系统lzw

2. 新建文件夹image,找12张图片放进去,修改imgae标签对应的src属性,酷炫的照片旋转就完成了。

3. 代码效果如下,双击index.html或者直接拖到浏览器中打开即可

520表白神器-照片特效*{ padding:0; margin:0; } #react{ width: 200px; height:200px; margin: 200px auto; transform-style:preserve-3d; animation:rotate 20s infinite; animation-timing-function: linear; } #react div{ position:absolute; transition: all .4s; } div .out_pic{ width:200px; height:200px; opacity:0.9; } div .in_pic{ width:100px; height:100px; } #react span{ display:block; position:absolute; width:100px; height:100px; top:50px; left:50px; } @keyframes rotate{ from{transform: rotateX(0deg) rotateY(0deg);} to{transform: rotateX(360deg) rotateY(360deg);} } .out_frount{ transform:translateZ(100px); } .out_back{ transform:translateZ(-100px); } .out_left{ transform:rotateY(90deg) translateZ(100px); } .out_right{ transform: rotateY(-90deg) translateZ(100px); } .out_top{ transform:rotateX(90deg) translateZ(100px); } .out_bottom{ transform: rotateX(-90deg) translateZ(100px); } .in_frount{ transform:translateZ(50px); } .in_back{ transform:translateZ(-50px); } .in_left{ transform:rotateY(90deg) translateZ(50px); } .in_right{ transform: rotateY(-90deg) translateZ(50px); } .in_top{ transform:rotateX(90deg) translateZ(50px); } .in_bottom{ transform: rotateX(-90deg) translateZ(50px); } #react:hover .out_frount{ transform:translateZ(200px); } #react:hover .out_back{ transform:translateZ(-200px); } #react:hover .out_left{ transform:rotateY(90deg) translateZ(200px); } #react:hover .out_right{ transform: rotateY(-90deg) translateZ(200px); } #react:hover .out_top{ transform:rotateX(90deg) translateZ(200px); } #react:hover .out_bottom{ transform: rotateX(-90deg) translateZ(200px); } @charset "utf-8"; /* CSS Document */

摆脱单身就差这一步了,赶紧学起来,记得回来关注哦!

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