当前位置:网站首页>3D stereo photo album, Valentine's day, couple birthday gift code applicable
3D stereo photo album, Valentine's day, couple birthday gift code applicable
2022-06-29 22:43:00 【Full stack programmer webmaster】
3d Stereo album , Valentine's Day , Couple birthday gift code applies
I don't say much nonsense , Go straight to the renderings ( Because the picture effect is limited , So it can't be HD )
Actually this 3d Photo albums are not that hard , Anyone who has studied front-end code knows how to use html5 It can be done . In theory, it is a small square inside , A big square outside . Then add the transparency adjustment , Plus the rotation, you can do it .
Add the mouse hover check . Pop open the square
The main codes are as follows :
/* Define small cube styles */
.cube span{
display: bloack;
width: 100px;
height: 100px;
position: absolute;
top: 50px;
left: 50px;
}
.cube .in_pic{
width: 100px;
height: 100px;
}
.cube .in_front{
transform: rotateY(0deg) translateZ(50px);
}
.cube .in_back{
transform: translateZ(-50px) rotateY(180deg);
}
.cube .in_left{
transform: rotateY(90deg) translateZ(50px);
}
.cube .in_right{
transform: rotateY(-90deg) translateZ(50px);
}
.cube .in_top{
transform: rotateX(90deg) translateZ(50px);
}
.cube .in_bottom{
transform: rotateX(-90deg) translateZ(50px);
}
/* After the mouse moves in the style */
.cube:hover .out_front{
transform: rotateY(0deg) translateZ(200px);
}
.cube:hover .out_back{
transform: translateZ(-200px) rotateY(180deg);
}
.cube:hover .out_left{
transform: rotateY(90deg) translateZ(200px);
}
.cube:hover .out_right{
transform: rotateY(-90deg) translateZ(200px);
}
.cube:hover .out_top{
transform: rotateX(90deg) translateZ(200px);
}
.cube:hover .out_bottom{
transform: rotateX(-90deg) translateZ(200px);
}In fact, they are all controlled by front-end code , It is the same to make wechat applet directly .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/2859.html Link to the original text :https://javaforall.cn
边栏推荐
- Taishan Office Technology Lecture: all elements in a row have the same height
- 便携式4K音视频会议终端一体机带8倍数字变焦
- 0. grpc environment setup
- 把数组排成最小的数_数组中的逆序对(归并统计法)_数字在升序数组中出现的次数_丑数(剑指offer)
- leetcode 416. Partition Equal Subset Sum 分割等和子集(中等)
- Optional类的高级使用
- Realizing deep learning framework from zero -- LSTM from theory to practice [theory]
- 还天天熬夜加班做报表?其实你根本不懂如何高效做报表
- 为什么在局域网(ERP服务器)共享文件夹上拷贝文件时导致全局域英特网断网
- 关于深度学习的概念理解(笔记)
猜你喜欢
为什么在局域网(ERP服务器)共享文件夹上拷贝文件时导致全局域英特网断网

地方/园区如何做好产业分析?

Arrange the array into the smallest number_ Reverse pairs in an array (merge Statistics)_ Number of occurrences of a number in an ascending array_ Ugly number (Sword finger offer)

一键式文件共享软件Jirafeau

Basic use of Nacos configuration center

VS2013如何让编写的程序在其它电脑上面也能运行

Ansible自动化运维
![Realizing deep learning framework from zero -- LSTM from theory to practice [theory]](/img/ac/164140eff1a6518d49ce25599d9c7b.png)
Realizing deep learning framework from zero -- LSTM from theory to practice [theory]

《天天数学》连载54:二月二十三日

交友平台小程序制作开发代码分享
随机推荐
一键式文件共享软件Jirafeau
MySQL lock common knowledge points & summary of interview questions
Daily question brushing record (VIII)
Taishan Office Technology Lecture: all elements in a row have the same height
掌握这28张图,面试再也不怕被问TCP知识了
Does rapid software delivery really need to be at the cost of security?
[php8+oracle11g+windows environment without tools] Intranet / no network /win10/php connecting to Oracle database instance
软件快速交付真的需要以安全为代价吗?
短视频平台搭建,淡入淡出 支持左滑右滑轮播图
触摸按键与按键控制对应的LED状态翻转
Huawei's software testing director with 7 years' experience, several suggestions for all students who want to switch to software testing
Is it safe to open a stock account? Shanghai stock account opening.
为什么在局域网(ERP服务器)共享文件夹上拷贝文件时导致全局域英特网断网
软件测试方法和技术知识点有哪些?
地方/园区如何做好产业分析?
读书郎上市背后隐忧:业绩下滑明显,市场地位较靠后,竞争力存疑
【Proteus仿真】步进电机转速数码管显示
Day9 ---- 用户注册与登录
Analyze apache SH script
啃下大骨头——排序(一)