当前位置:网站首页>What is the experience of developing an ice 3D music player in 3 minutes?
What is the experience of developing an ice 3D music player in 3 minutes?
2022-06-24 04:51:00 【Geek Jiangnan】
Let's start with an effect picture :
- The development train of thought
- Local interface
- Make 3D Rotate the player
- add to Animation
- Add background music
Development technology
- html
- css
Core logic
- html Layout interface
- css Realization of animation
- Source code acquisition
Core code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Ice version -3D Music player </title>
<style>
*{
margin: 0;
padding: 0;
}
body{
background: url("images/jacky/bg.png") no-repeat;
background-size:cover;
overflow: hidden;
}
ul{
width: 200px;
height: 200px;
/*background-color: red;*/
position: absolute;
bottom: 100px;
left: 50%;
margin-left:-100px;
transform-style: preserve-3d;
/*transform: rotateX(-10deg);*/
animation: sport 6s linear 0s infinite normal;
}
ul li{
list-style: none;
width: 200px;
height: 200px;
font-size: 60px;
text-align: center;
line-height: 200px;
position: absolute;
left: 0;
top: 0;
background-color: black;
}
ul li:nth-child(1){
transform: rotateY(60deg) translateZ(200px);
}
ul li:nth-child(2){
transform: rotateY(120deg) translateZ(200px);
}
ul li:nth-child(3){
transform: rotateY(180deg) translateZ(200px);
}
ul li:nth-child(4){
transform: rotateY(240deg) translateZ(200px);
}
ul li:nth-child(5){
transform: rotateY(300deg) translateZ(200px);
}
ul li:nth-child(6){
transform: rotateY(360deg) translateZ(200px);
}
ul li img{
width: 200px;
height: 200px;
border: 5px solid skyblue;
box-sizing: border-box;
}
ul:hover{
animation-play-state: paused;
}
ul:hover li img{
opacity: 0.5;
}
ul li:hover img{
opacity: 1;
}
@keyframes sport {
from{
/*
Be careful :
1. If there is an attribute with the same name as the default style in the animation , Will override the properties with the same name in the default style
2. When writing animation , Fixed values are written in front of , The values that need to change are written at the end
*/
transform: rotateX(-10deg) rotateY(0deg);
}
to{
transform: rotateX(-10deg) rotateY(360deg);
}
}
.heart{
width: 173px;
height: 157px;
position: absolute;
left: 100px;
bottom: 100px;
animation: move 10s linear 0s infinite normal;
}
@keyframes move {
0%{
left: 100px;
bottom: 100px;
opacity: 1;
}
20%{
left: 300px;
bottom: 300px;
opacity: 0;
}
40%{
left: 500px;
bottom: 500px;
opacity: 1;
}
60%{
left: 800px;
bottom: 300px;
opacity: 0;
}
80%{
left: 1200px;
bottom: 100px;
opacity: 1;
}
100%{
left: 800px;
bottom: -200px;
}
}
</style>
</head>
<body>
<ul>
<li><img src="images/jacky/1.png" alt=""></li>
<li><img src="images/jacky/2.png" alt=""></li>
<li><img src="images/jacky/3.png" alt=""></li>
<li><img src="images/jacky/4.png" alt=""></li>
<li><img src="images/jacky/5.png" alt=""></li>
<li><img src="images/jacky/6.png" alt=""></li>
</ul>
<img src="images/jacky/xin.png" class="heart">
<!-- Add music -->
<audio src="images/jacky/bingbing.mp3" autoplay="autoplay" loop="loop"></audio>
</body>
</html>Remember before collection , Like it first ! Good articles are worth seeing by more people .
边栏推荐
- Abnova peptide design and synthesis solutions
- Getattribute return value is null
- How do ECS create FTP accounts? What should I pay attention to during creation?
- How does the VPS server upload data? Is the VPS server free to use?
- Next. JS + cloud development webify creates an excellent website
- How does the compiler put the first instruction executed by the chip at the start address of the chip?
- Worthington胰蛋白酶的物化性质及特异性
- How to open the port of ECS what are the precautions for using ECS
- Advantages of fixed assets management system
- Weibo International Edition changed its name to Weibo light sharing Edition
猜你喜欢

The official overclocking tool of Intel XTU supports win11 22h2 and 13th generation core Raptor Lake processors

SAP mts/ato/mto/eto topic 7: ATO mode 1 m+m mode strategy 82 (6892)

『渗透基础』Cobalt Strike基础使用入门_Cobalt Strike联动msfconsole

梯度下降法介紹-黑馬程序員機器學習講義

C语言自定义类型的介绍(结构体,枚举,联合体,位段)

Abnova膜蛋白脂蛋白体解决方案

Idea创建Servlet 后访问报404问题

"Emergency response practice" logparser log analysis practice

SAP MTS/ATO/MTO/ETO专题之七:ATO模式1 M+M模式策略用82(6892)

线性回归的损失和优化,机器学习预测房价
随机推荐
Deep learning common optimizer summary
SAP mts/ato/mto/eto topic 10: ETO mode q+ empty mode unvalued inventory policy customization
Worthington脱氧核糖核酸酶I特异性和相关研究
Popularization of children's programming education in specific scenarios
Customer disaster recovery case - a MySQL database migration scheme
DP summary of ACM in recent two weeks
Spirit breath development log (15)
梯度下降法介紹-黑馬程序員機器學習講義
External network access SVN server (external network access SVN server deployed on the cloud)
The trunk warehouse can also be tob, and Tencent cloud microenterprises do not leave quality behind
How to control CDN traffic gracefully in cloud development?
Qiming cloud sharing: tips on esp32c3 simple IO and serial port
What technology is VPS? How does the server VPS?
Advanced authentication of uni app [Day12]
Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs
Database answers build standard, answer as required
Final summary of freshman semester (supplement knowledge loopholes)
What are the advantages of ECS? Is ECS better than VM?
How to install software on ECs is it expensive to rent ECS
Replication of variables in golang concurrency