当前位置:网站首页>线条动画
线条动画
2022-06-28 05:21:00 【辕小白】
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>线条动画</title>
<style>
html,body{
margin: 0;
width: 100%;
height: 100%;
background-color: #0f222b;
}
.box,.box::before,.box:after{
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.box{
width: 200px;
height: 200px;
background: url(../images/er.jpg) no-repeat 50%/90%;
border: 2px solid green;
margin: auto;
}
.box::before, .box::after{
content:'';
margin: -5%;
box-shadow: inset 0 0 0 2px #69ca62;
animation: fengyu 8s linear infinite;
}
.box::after{
animation-delay: -4s; /*动画延迟 -4s*/
}
@keyframes fengyu{
0%,100%{
clip: rect(0px,220px,2px,0px);
/* 裁剪 必须有一个前置属性 position: absolute;*/
}
25%{
clip: rect(0px,2px,220px,0px);
}
50%{
clip: rect(218px,220px,220px,0px);
}
75%{
clip: rect(0px,220px,220px,218px);
}
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>

边栏推荐
- Object detection with OpenCV
- 项目经理考完PMP就够了?不是的!
- SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
- Can wechat applets import the data in the cloud development database into makers with one click in the map component
- msa.h:没有那个文件或目录
- 【LeetCode】12、整数转罗马数字
- Learning Tai Chi Maker - mqtt Chapter 2 (V) heartbeat mechanism
- Prove that there are infinite primes / primes
- Question bank and answers of 2022 materialman general basic (materialman) operation certificate examination
- Biovendor sRAGE antibody solution
猜你喜欢

【JVM系列】JVM调优

Learn Taiji Maker - mqtt Chapter 2 (IV) esp8266 reserved message application

How high is the gold content of grade II cost engineer certificate? Just look at this

【无标题】drv8825步进电机驱动板子原理图

The heading angle of sliceplane is the same as that of math Corresponding transformation relation of atan2 (y, x)

Reactive dye research: lumiprobe af594 NHS ester, 5-isomer

2022 low voltage electrician examination questions and answers

PCR/qPCR研究:Lumiprobe丨dsGreen 用于实时 PCR

What is the difference between AC and DC?
![[JVM] - memory partition in JVM](/img/d8/29a5dc0ff61e35d73f48effb858770.png)
[JVM] - memory partition in JVM
随机推荐
店铺进销存管理系统源码
2022年材料员-通用基础(材料员)操作证考试题库及答案
2022西式面点师(高级)考试试题模拟考试平台操作
双向电平转换电路
How to do a good job of gateway high availability protection in the big promotion scenario
电源插座是如何传输电的?困扰小伙伴这么多年的简单问题
【SkyWalking】一口气学完分布式链路追踪SkyWalking
Steve Jobs' speech at Stanford University -- follow your heart
Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
无线传感器网络学习笔记(一)
Why does the company choose cloud database? What is its charm!
Intensive learning notes
It is the latest weapon to cross the blockade. It is one of the fastest ladders.
Dart learning - functions, classes
Metartc5.0 API programming guide (I)
如何做好水库大坝安全监测工作
Extjs library management system source code intelligent library management system source code
程序员-放羊娃
【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署
基于订单流工具,我们能看到什么?