当前位置:网站首页>线条动画
线条动画
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>

边栏推荐
- Operation of 2022 power cable judgment question simulation examination platform
- TypeScript接口
- C语言中函数是什么?编程中的函数与数学中的函数区别?理解编程语言中的函数
- [microservices openfeign] openfeign quick start service invocation based on feign
- Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
- IP datagram sending and forwarding process
- JS text box loses focus to modify width text and symbols
- Keil C51的Data Overlaying机制导致的函数重入问题
- Biovendor sRAGE protein solution
- Concurrent wait/notify description
猜你喜欢

Leetcode 88: merge two ordered arrays

Biovendor sRAGE protein solution

Latest Windows version 5.0.14 of redis

2022 high altitude installation, maintenance and removal examination questions and answers

A guide to P2P network penetration (stun) for metartc5.0 programming

如何学习可编程逻辑控制器(PLC)?

北斗三号短报文终端在大坝安全监测方案的应用

!‘ Cat 'is not an internal or external command, nor is it a runnable program or batch file.
![[untitled] drv8825 stepping motor drive board schematic diagram](/img/30/02f695592f3b624ebbb2b7a9f68052.png)
[untitled] drv8825 stepping motor drive board schematic diagram

CPG 固体支持物研究:Lumiprobe通用 CPG II 型
随机推荐
Simulation questions and answers of the latest national fire-fighting facility operators (primary fire-fighting facility operators) in 2022
Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
【C语言练习——打印空心正方形及其变形】
Gorm transaction experience
Learning Tai Chi Maker - mqtt Chapter II (VI) mqtt wills
Assembly common instructions
Operation of 2022 power cable judgment question simulation examination platform
Extjs library management system source code intelligent library management system source code
Leecode question brushing-ii
Sorting out some topics of modern exchange principle MOOC
基于微信小程序的婚纱影楼门户小程序
How to learn programmable logic controller (PLC)?
gsap的简单用法
JS text box loses focus to modify width text and symbols
Based on the order flow tool, what can we see?
项目经理考完PMP就够了?不是的!
基于订单流工具,我们能看到什么?
When excel copies the contents of a row, the columns are separated by the tab "\t"
lotus v1.16.0 calibnet
Programmer - Shepherd