纯CSS实现鼠标经过3D立体动态展示图片特效代码

*{

margin:0;

padding:0;

}

body{

max-width: 100%;

min-width: 100%;

height: 100%;

background-size: cover;

background-repeat: no-repeat;

background-attachment: fixed;

background-size:100% 100%;

position: absolute;

margin-left: auto;

margin-right: auto;

}

li{

list-style: none;

}

.box{

width:200px;

height:200px;

background-size: cover;

background-repeat: no-repeat;

background-attachment: fixed;

background-size:100% 100%;

position: absolute;

margin-left: 42%;

margin-top: 22%;

-webkit-transform-style:preserve-3d;

-webkit-transform:rotateX(13deg);

-webkit-animation:move 5s linear infinite;

}

.minbox{

width:100px;

height:100px;

position: absolute;

left:50px;

top:30px;

-webkit-transform-style:preserve-3d;

}

.minbox li{

width:100px;

height:100px;

position: absolute;

left:0;

top:0;

}

.minbox li:nth-child(1){

background: url(01.png) no-repeat 0 0;

-webkit-transform:translateZ(50px);

}

.minbox li:nth-child(2){

background: url(02.png) no-repeat 0 0;

-webkit-transform:rotateX(180deg) translateZ(50px);

}

.minbox li:nth-child(3){

background: url(03.png) no-repeat 0 0;

-webkit-transform:rotateX(-90deg) translateZ(50px);

}

.minbox li:nth-child(4){

background: url(04.png) no-repeat 0 0;

-webkit-transform:rotateX(90deg) translateZ(50px);

}

.minbox li:nth-child(5){

background: url(05.png) no-repeat 0 0;

-webkit-transform:rotateY(-90deg) translateZ(50px);

}

.minbox li:nth-child(6){

background: url(06.png) no-repeat 0 0;

-webkit-transform:rotateY(90deg) translateZ(50px);

}

.maxbox li:nth-child(1){

background: url(1.png) no-repeat 0 0;

-webkit-transform:translateZ(50px);

}

.maxbox li:nth-child(2){

background: url(2.png) no-repeat 0 0;

-webkit-transform:translateZ(50px);

}

.maxbox li:nth-child(3){

background: url(3.png) no-repeat 0 0;

-webkit-transform:rotateX(-90deg) translateZ(50px);

}

.maxbox li:nth-child(4){

background: url(4.png) no-repeat 0 0;

-webkit-transform:rotateX(90deg) translateZ(50px);

}

.maxbox li:nth-child(5){

background: url(5.png) no-repeat 0 0;

-webkit-transform:rotateY(-90deg) translateZ(50px);

}

.maxbox li:nth-child(6){

background: url(6.png) no-repeat 0 0;

-webkit-transform:rotateY(90deg) translateZ(50px);

}

.maxbox{

width: 800px;

height: 400px;

position: absolute;

left: 0;

top: -20px;

-webkit-transform-style: preserve-3d;

}

.maxbox li{

width: 200px;

height: 200px;

background: #fff;

border:1px solid #ccc;

position: absolute;

left: 0;

top: 0;

opacity: 0.2;

-webkit-transition:all 1s ease;

}

.maxbox li:nth-child(1){

-webkit-transform:translateZ(100px);

}

.maxbox li:nth-child(2){

-webkit-transform:rotateX(180deg) translateZ(100px);

}

.maxbox li:nth-child(3){

-webkit-transform:rotateX(-90deg) translateZ(100px);

}

.maxbox li:nth-child(4){

-webkit-transform:rotateX(90deg) translateZ(100px);

}

.maxbox li:nth-child(5){

-webkit-transform:rotateY(-90deg) translateZ(100px);

}

.maxbox li:nth-child(6){

-webkit-transform:rotateY(90deg) translateZ(100px);

}

.box:hover ol li:nth-child(1){

-webkit-transform:translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

.box:hover ol li:nth-child(2){

-webkit-transform:rotateX(180deg) translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

.box:hover ol li:nth-child(3){

-webkit-transform:rotateX(-90deg) translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

.box:hover ol li:nth-child(4){

-webkit-transform:rotateX(90deg) translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

.box:hover ol li:nth-child(5){

-webkit-transform:rotateY(-90deg) translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

.box:hover ol li:nth-child(6){

-webkit-transform:rotateY(90deg) translateZ(300px);

width: 400px;

height: 400px;

opacity: 0.8;

left: -100px;

top: -100px;

}

@keyframes move{

0%{

-webkit-transform: rotateX(13deg) rotateY(0deg);

}

100%{

-webkit-transform:rotateX(13deg) rotateY(360deg);

}

}

/*背景音乐*/

.m-main{width:1200px; height: 60px;margin: 0 auto}

.m-main video{display: none; }

.m-main .player {

width: 100%;

height: 60px;

position: relative;

bottom: 0;

}

.m-main .player>a{display: inline-block; width: 20px; margin: 0 auto; padding: 10px; color: #FFF; text-align: center;float: left;font-size: 12px}

.m-main .player>a img{

width: 20px;

height: 20px;

position: absolute;

top: 20px;

left: 41px;

}

#img1{

display: block;

}

#img2{

display: none;

}

.m-main .play-box {

width: 1070px;

height: 60px;

margin: 0 auto;

position: absolute;

top: 0;

right: 0;

}

.m-main .play-box .left {

width: 100%;

float: left;

}

.m-main .play-box .left p.timeline { width: 83%;height: 10px; background-color: rgba(216, 216, 216, 0.5); border-radius: 5px; margin:30px auto 0; position: relative; z-index: 2; }

.m-main .play-box .left p.timeline span {position: relative; width: 0; height: 10px; background-color: #D3EEDF; border-radius: 5px; display: block; -webkit-transition: width ease-out 0.3s;-o-transition: width ease-out 0.3s;transition: width ease-out 0.3s;}

.m-main .play-box .left p.timeline span:after{content: ""; position: absolute; top: -4px; right:-0.6rem;width: 1.2rem; height:1.2rem; border-radius: 50%;background-color: green;}

.m-main .play-box .left div.info { height: 26px; line-height: 26px; font-size: 14px; color: #9A9A9A; position: relative; top: -18px; margin:0 10px; z-index: 1;}

.m-main .play-box .left div.info .size { float: left; display: block;}

.m-main .play-box .left div.info .timeshow { float: right; display: block;margin-right: 30px}

00:00

00:00

抖音3d相册html代码,抖音上很火的3D立体动态相册.html相关推荐

  1. 抖音上很火的H53D立体动态相册效果

    网站效果:http://www.fengzhao.icu/pic/index.html 动态效果图 源码Demo: 一.新建一个index.html的文件,代码如下 <!DOCTYPE html ...

  2. 用html3d静态相册带音乐,抖音上很火的H53D立体动态相册效果

    网站效果:http://www.fengzhao.icu/pic/index.html 动态效果图 源码Demo:css 1.新建一个index.html的文件,代码以下 纯CSS实现鼠标通过3D立体 ...

  3. 抖音上很火的3D立体动态相册

    带背景音乐网站效果: http://www.fengzhao.icu/photos/html/%E6%8A%96%E9%9F%B3%E4%B8%8A%E5%BE%88%E7%81%AB%E7%9A%8 ...

  4. java3d翻转纪念相册_抖音上很火的3D立体动态相册实现代码!

    前言: 圣诞节快到了,是不是要给女朋友或者正在追求的妹子一点小惊喜呢,今天这篇博客就分享下前端代码如何实现3D立体动态相册.赶紧学会了,来制作属于我们程序员的浪漫吧!先上效果图,来引起下你们的兴趣. ...

  5. 抖音上很火的3D立体动态相册代码制作教程

    直接来正文 直接来干货 先创建一个html文件 <!DOCTYPE html> <html lang="en"> <head> <meta ...

  6. 怎么用java做一个立体相册_抖音上很火的3D立体动态相册实现教程!(不懂编程也能学会)...

    现在开始说说制作过程: 一.创建文件夹 1.在桌面建一个文件夹,命名随意 2.在文件夹里创建一个文件名为index.html的文件 3.在文件夹里创建两个文件名分别为img.css的文件夹 4.在cs ...

  7. 编程制作动态壁纸的思路_抖音上很火的3D立体动态相册实现教程!(不懂编程也能学会)...

    现在开始说说制作过程: 一.创建文件夹 1.在桌面建一个文件夹,命名随意 2.在文件夹里创建一个文件名为index.html的文件 3.在文件夹里创建两个文件名分别为img.css的文件夹 4.在cs ...

  8. 我对象说陪我过七夕,象说没时间,我一怒给女神做了一个某音上很火的3D旋转相册

    大家好,我是辣条. 七夕快到了,有人开心有人愁,辣条就是愁的那个,辣条也是有女朋友的,就是太废打气筒了,隔三差五就要充气,阿西吧... 今天这篇博客就是演示做一个前端3D旋转相册,学会的小伙伴可以给自 ...

  9. java 编程动感相册_抖音3D立体动态相册实现代码下载

    今天这篇博客就分享下前端代码如何实现3D立体动态相册.赶紧学会了,来制作属于我们程序员的浪漫吧,别忘了发到自己抖音,让女朋友看一下!先上效果图,来引起下你们的兴趣. 再看看具体的效果: 一.新建一个i ...

最新文章

  1. C#和F#默认接口方法更新
  2. Arduino门禁人机接口调试 Version 1.0
  3. SQL 语句快速参考
  4. 解决数据中心管综难题:管线避让的十七个原则!
  5. spss主成分综合得分_使用SPSS对美国50个州情况分析
  6. Bootstrap 字体与图标
  7. 静态RAM(2K * 8位)6116介绍(抄自原理图)
  8. 计算机网络比特是什么,计算机网络
  9. oracle12c安装详解,Oracle12C安装教程
  10. 免费从IEEE xplore下载论文
  11. Python数据有效性DataValidation模块
  12. 音创linux版e100加歌,麦得好ktv点歌机音创E100-A51,2.42新版本U盘加歌方法
  13. 项目管理上的新问题 - 先有鸡还是先有蛋的问题新解
  14. 轻松完成销售业绩的6个技巧
  15. 今天的一点感悟-20211216
  16. 2022全国视力防控展,中国爱眼教育大会
  17. IMAGEJ缩放图片
  18. jupyter安装使用
  19. 独立显卡linux安装教程,linux 安装meshlab并且指定使用独立显卡
  20. Data too long for column 'name' at row 1

热门文章

  1. 自学Java找到30w的工作
  2. spark学习-BlockManager原理
  3. Qt5 pyqt5图片编辑器功能函数一篇全搞定:实现图片格式转换、显示、缩放、特效处理(模糊、锐化,浮雕等等)
  4. WAP建站程序开发要注意的几方面
  5. scala 函数(柯理化)
  6. 深大uooc大学生心理健康章节答案第七章
  7. alpha策略_如何设计Alpha拮抗剂
  8. MATLAB字符串学习笔记
  9. Myeclipse WebServer 之 简单局域网服务器使用(简单实现局域网IP:Port端口访问局域网数据)
  10. linux配置网关提示网络不可达