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

边栏推荐
- [untitled] drv8825 stepping motor drive board schematic diagram
- Learn Taiji Maker - mqtt Chapter 2 (IV) esp8266 reserved message application
- JS 文本框失去焦点修改全半角文字和符号
- What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
- mysql 导出查询结果成 excel 文件
- Concurrent wait/notify description
- Opencv实现颜色检测
- 羧酸研究:Lumiprobe 磺基花青7二羧酸
- 【SkyWalking】一口气学完分布式链路追踪SkyWalking
- Study on chemical properties and technology of biovendor rage ELISA Kit
猜你喜欢

The latest examination questions and answers for the eight members (standard members) of Liaoning architecture in 2022

Concurrent wait/notify description

2022 safety officer-b certificate examination question bank and answers

基于订单流工具,我们能看到什么?

Docker安装Mysql5.7并开启binlog

Keil C51的Data Overlaying机制导致的函数重入问题

Sqlmap tool user manual

【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署

【JVM】——JVM中内存划分

WordPress zibll sub theme 6.4.1 happy version is free of authorization
随机推荐
[JVM] - memory partition in JVM
msa.h:没有那个文件或目录
交流电和直流电的区别是什么?
如何做好水库大坝安全监测工作
Wedding studio portal applet based on wechat applet
Learning Tai Chi Maker - mqtt Chapter II (VI) mqtt wills
TypeScript基础类型
MySQL export query results to excel file
Unity delegate
JS text box loses focus to modify width text and symbols
MySQL 45讲 | 05 深入浅出索引(下)
How high is the gold content of grade II cost engineer certificate? Just look at this
电源插座是如何传输电的?困扰小伙伴这么多年的简单问题
Docker installs mysql5.7 and starts binlog
BioVendor sRAGE Elisa试剂盒化学性质和技术研究
Leetcode 88: merge two ordered arrays
PCR/qPCR研究:Lumiprobe丨dsGreen 用于实时 PCR
基于订单流工具,我们能看到什么?
如何学习可编程逻辑控制器(PLC)?
Opencv实现目标检测