当前位置:网站首页>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 .
边栏推荐
- How to build a website for ECS? What are the prices of different ECS
- Bi-sql basic cognition
- How do ECS create FTP accounts? What should I pay attention to during creation?
- 解析后人类时代类人机器人的优越性
- Brief introduction: how much do you know about supply chain attacks
- Are you ready for the exam preparation strategy of level II cost engineer in 2022?
- Zhang Xiaodan, chief architect of Alibaba cloud hybrid cloud: evolution and development of government enterprise hybrid cloud technology architecture
- 阿里云混合云首席架构师张晓丹:政企混合云技术架构的演进和发展
- Worthington弹性蛋白酶的应用和相关研究
- Idea创建Servlet 后访问报404问题
猜你喜欢

什么是数据中台

Abnova多肽设计和合成解决方案

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

Introduction to gradient descent method - black horse programmer machine learning handout

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

MySQL - SQL execution process

Training course of mixed accuracy from simple to deep
uni-app进阶之认证【day12】

Abnova荧光原位杂交(FISH)探针解决方案

Training methods after the reform of children's programming course
随机推荐
Application practice of helium decentralized lorawan network in Tencent cloud IOT development platform
How to build a website for ECS? What are the prices of different ECS
Idea创建Servlet 后访问报404问题
How to enlarge the ECS page? How to select ECS instance specifications?
Detailed explanation of tcpip protocol
Integration of Alibaba cloud SMS services and reasons for illegal message signing
Loss and optimization of linear regression, machine learning to predict house prices
Bi-sql distinct
Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs
Specificity and correlation of Worthington deoxyribonuclease I
Library management backstage
阿里云新一代云计算体系架构 CIPU 到底是啥?
ribbon
uni-app进阶之认证【day12】
集成阿里云短信服务以及报签名不合法的原因
Customer disaster recovery case - a MySQL database migration scheme
Digital transformation practice of Zheshang Bank
Spirit breath development log (15)
What technology is VPS? How does the server VPS?
梯度下降法介紹-黑馬程序員機器學習講義