当前位置:网站首页>Learning exploration - waves
Learning exploration - waves
2022-07-25 23:24:00 【miao_ zz】
The waves
Effect example picture

Code example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
body {
height: 100vh;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
}
.battery {
width: 200px;
height: 320px;
background-color: #fff;
border-radius: 10px 10px 5px 5px;
position: relative;
}
.battery::before {
content: "";
width: 50px;
height: 20px;
background-color: #fff;
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
border-radius: 5px 5px 0px 0px;
}
.battery::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0px;
top: 90%;
border-radius: 10px 10px 5px 5px;
background: linear-gradient(to bottom, #04e963 0%, #0bdf9f 44%);
animation: change 10s linear infinite;
}
@keyframes change {
0% {
top: 100%;
border-radius: 0px 0px 5px 5px;
/* Apply color rotation to the image . */
filter: hue-rotate(90deg);
}
95% {
top: 5%;
border-radius: 0px 0px 5px 5px;
}
100% {
top: 0%;
filter: hue-rotate(0deg);
}
}
.cover {
width: 100%;
height: 100%;
border-radius: 10px 10px 5px 5px;
position: absolute;
left: 0;
top: 0;
z-index: 1;
overflow: hidden;
}
.cover::before {
content: "";
width: 400px;
height: 400px;
background: rgba(255, 255, 255, 0.8);
position: absolute;
border-radius: 40% 30%;
left: -50%;
animation: coverBefore 10s linear infinite;
}
.cover::after {
content: "";
width: 400px;
height: 400px;
background: rgba(255, 255, 255, 0.6);
position: absolute;
border-radius: 42% 40%;
left: -50%;
animation: coverAfter 10s linear infinite;
}
@keyframes coverBefore {
0% {
transform: rotate(0deg);
bottom: 0%;
}
100% {
transform: rotate(360deg);
bottom: 100%;
}
}
@keyframes coverAfter {
0% {
transform: rotate(30deg);
bottom: 2%;
}
100% {
transform: rotate(360deg);
bottom: 95%;
}
}
</style>
</head>
<body>
<div class="battery">
<div class="cover"></div>
</div>
</body>
</html>
边栏推荐
- 推荐系统——An Embedding Learning Framework for Numerical Features in CTR Prediction
- 2021-09-30
- Serialize addition, deletion, modification and query
- Enabling partners, how can Amazon cloud technology "get on the horse and get a ride"?
- ETL tool (data synchronization) II
- Source code of wechat applet for discerning flowers and plants / source code of wechat applet for discerning plants
- Mongodb query and projection operators
- Details of notification (status bar notification)
- 【代码案例】博客页面设计(附完整源码)
- 连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
猜你喜欢

Solve the problem phpstudy failed to import the database

Enabling partners, how can Amazon cloud technology "get on the horse and get a ride"?

Family relationship calculator wechat applet source code

MVVM model

Data broker understanding

数组中重复的数字

行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化

Analysis of the influence of ESM direction finding error on positioning error

Week 2: convolutional neural network

Memory paging and tuning, kernel and user space
随机推荐
WordPress removes the website publishing time
The fifth article in the series of radar Fundamentals: the function of radar modulation style
The VM session was closed before any attempt to power it on
[interface performance optimization] reasons for index failure and how to optimize SQL
日期类的实现
r语言绘图参数(R语言plot画图)
新手哪个券商开户最好 开户最安全
连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
ETL tool (data synchronization) II
Secure code warrior learning record (II)
策略模式_
Source code of YY music wechat applet imitating Netease cloud music
ASP date function (what if the disk function is incorrect)
XxE & XML external entity injection utilization and bypass
TS interface
[QNX hypervisor 2.2 user manual]9.6 GDB
Thinkphp6 temporarily close the layout
OASYS system of code audit
自定义mvc原理
5 ROS simulation modeling (3-rviz+gazebo+ control simulation robot)