当前位置:网站首页>学习探索-波浪
学习探索-波浪
2022-07-25 23:15:00 【miao_zz】
效果示例图

代码示例
<!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;
/* 给图像应用色相旋转。 */
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>
边栏推荐
- Multimodal deep multi modal sets
- HJ9 提取不重复的整数
- PHP wechat scan code, follow official account and authorize login source code
- CTS test method "suggestions collection"
- Take root downward, grow upward, and explore the "root" power of Huawei cloud AI
- Circle detection and line detection of PCL
- Ma Tiji Wanmin hall Chef
- 推荐系统——An Embedding Learning Framework for Numerical Features in CTR Prediction
- The difference between MySQL clustered index and non clustered index
- Node基础
猜你喜欢

Enterprise level inventory management system of code audit
![[paper notes] robot dynamic tracking and grasping method based on online prediction and planning](/img/0f/ca7f3cd3332069185a2dad397766b4.png)
[paper notes] robot dynamic tracking and grasping method based on online prediction and planning

General paging function

Take away applet with main version of traffic / repair to add main access function of traffic

Notification(状态栏通知)详解

Cuteone: a onedrive multi network disk mounting program / with member / synchronization and other functions

The VM session was closed before any attempt to power it on

Very simple vsplayaudio online music player plug-in

Tencent map API request source is not authorized, this request source domain name

How to set pseudo static for WordPress fixed links
随机推荐
策略模式_
连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
5 ROS仿真建模(3- rviz+gazebo+控制仿真机器人)
Rendering, filtering (filtering) and sorting of lists
[interface performance optimization] reasons for index failure and how to optimize SQL
Which securities firm is the best and safest for beginners to open an account
@Autowired注解 required属性
[PTA] 7-19 check face value (15 points)
校验码生成
How to obtain the cash flow data of advertising services to help analyze the advertising effect?
[PTA] 7-24 minimum fraction (15 points)
VisualBox启动虚拟机报错:The VM session was closed before any attempt to power it on.
Thinkphp6 temporarily close the layout
Call Gaode map -- address is converted into longitude and latitude
Notification设置的小图标显示的是小方块
Discuz magazine / news report template (jeavi_line) utf8 GBK / DZ template download
Ma Tiji Wanmin hall Chef
PyTorch的数据输入格式要求及转换
Take root downward, grow upward, and explore the "root" power of Huawei cloud AI
动态内存管理