3d立体相册特效html网页代码_女朋友生日,我送她网页相册,她感动哭了…

0d8e850b9b419e955e4f72dafd870041.png

传智播客博学谷

加小谷vx:boxueguu

免费领IT各学科资料、课程

Get更多干货直播课

bb535798c580a8a07a51bdaed52763e8.png

女朋友最近生日,我作为浪漫(搞事)专家,怎么能不弄点惊喜呢?于是我的这一件礼物,直接把女朋友感动哭了。

我和女朋友的甜蜜聊天对话!!

b11d42633351104ac0b330b82bcf1314.png

那么我是怎么把女朋友感动哭的呢?我们来看看网页相册效果图。

61c4af0a2fde3df4d21ff373e05dcc64.gif

这里我把女朋友的照片换成了她最喜欢的偶像的照片(保命操作,当时我用的是她的照片),是不是很炫酷呢?

瞬间让女生感动哭了。

b9211dc38743e2817637d8ef689c7fe2.png

那么是怎么实现的呢,很简单,只需要html和css就行了,代码直接给你们,换一下图片就行了。

          把女朋友感动哭的相册          html{          width: 100%;          height: 100%;        }        .bigbox{          width: 10px;          height: 10px;          margin: 200px 400px;          position: relative;        }        .box{          width:500px;          height:300px;          margin: 0 auto;          transform-style: preserve-3d;          transform: rotateX(-30deg) rotateY(-80deg);          -webkit-animation: mystyle 15s infinite;          animation-timing-function: linear;        }        @-webkit-keyframes mystyle{          from{transform: rotateX(-180deg) rotateY(-180deg);}          to{transform: rotateX(180deg) rotateY(180deg);}        }        .box div{          position: absolute;          width: 200px;          height: 200px;          opacity: 0.8;          transition: all .4s;        }        .bigpic{          width: 200px;          height: 200px;        }        .box .bigfront{          transform: rotateY(0deg) translateZ(100px);        }        .box .bigback{          transform: translateZ(-100px) rotateY(180deg);        }        .box .bigleft{          transform: rotateY(90deg) translateZ(100px);        }        .box .bigright{          transform: rotateY(-90deg) translateZ(100px);        }        .box .bigtop{          transform: rotateX(90deg) translateZ(100px);        }        .box .bigbottom{          transform: rotateX(-90deg) translateZ(100px);        }        .box span{          display: block;          position: absolute;          width: 140px;          height: 140px;          top: 25px;          left: 25px;        }        .box .smallpic{          width: 140px;          height: 140px;        }        .box .smallleft{          transform: rotateY(90deg) translateZ(70px);        }        .box .smallright{          transform: rotateY(-90deg) translateZ(70px);        }        .box .smalltop{          transform: rotateX(90deg) translateZ(70px);        }        .box .smallbottom{          transform: rotateX(-90deg) translateZ(70px);        }        .box .smallfront{          transform: rotateY(0deg) translateZ(70px);        }        .box .smallback{          transform: translateZ(-70px) rotateY(180deg);        }        /*:hover 我们之前说过的一个css选择器,能够让鼠标指向的时候触发*/        .box:hover .bigleft{          transform: rotateY(90deg) translateZ(300px);        }        .box:hover .bigright{          transform: rotateY(-90deg) translateZ(300px);        }        .box:hover .bigtop{          transform: rotateX(90deg) translateZ(300px);        }        .box:hover .bigbottom{          transform: rotateX(-90deg) translateZ(300px);        }        .box:hover .bigfront{          transform: rotateY(0deg) translateZ(300px);        }        .box:hover .bigback{          transform: translateZ(-300px) rotateY(180deg);        }        

文件夹结构如下:

84a1ea7dd591118cba39a9922dd77805.png

好了,你们也快去把女朋友感动哭吧!!

没有女朋友怎么办?

67326a76d229415f4794fbb1adcff654.gif

点个赞明天我给你分配一个。

25d5f111dfa7a182e0c150059cdc39b8.png

不说了,我要去买榴莲了,晚了可能连进去跪榴莲的机会也没有了,大家保重,注意膝盖。

来源:CSDN, git小米粥

-End-

57a78c81bf2480c818f08e9362071a8c.gif

点击图片了解1024程序员节

86def2f67346d38b7aae1e63866dab19.png

▼点击 【阅读原文】 参加1024活动 !我就知道你 “在看”
  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值