Pure CSS3 realizes the effect of div entering and exiting in order

Pure CSS3 realizes the effect of div entering and exiting in order

This article mainly introduces the effect of div entering and exiting in sequence using pure CSS3. It has a certain reference value. If you are interested, you can learn more about it.

Effect:

source code:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				margin-top: 10px;
				height: 50px;
				background-color: #FF0000;
				opacity: 0.6;
			}
			
			.a{
				animation: aa 2s linear 100ms infinite;
			}
			.b{
				animation: bb 2s linear infinite
			}
			.c{
				animation: cc 2s linear infinite
			}
			.d{
				animation:dd 2s linear infinite
			}
			
			@keyframes aa{
				0%{width: 0;}
				25%{width:200px;}
				50%{width:200px;}
				75%{width:200px;}
				100%{width:200px;}
			}
			@keyframes bb{
				0%{width: 0;}
				25%{width:0px;}
				50%{width:200px;}
				75%{width:200px;}
				100%{width:200px;}
			}
			@keyframes cc{
				0%{width: 0;}
				25%{width:0px;}
				50%{width:0px;}
				75%{width:200px;}
				100%{width:200px;}
			}
			@keyframes dd{
				0%{width: 0;}
				25%{width:0px;}
				50%{width:0px;}
				75%{width:0px;}
				100%{width:200px;}
			}
			
		</style>
	</head>
	<body>
		<div class="a">
			
		</div>
		<div class="b">
			
		</div>
		<div class="c">
			
		</div>
		<div class="d">
			
		</div>
	</body>
</html>

This is the end of this article about how to use pure CSS3 to achieve the effect of divs entering and exiting in sequence. For more relevant content about CSS3 divs entering and exiting in sequence, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  HTML+CSS to achieve charging water drop fusion special effects code

>>:  HTML+CSS to achieve responsive card hover effect

Recommend

Tips for adding favicon to a website: a small icon in front of the URL

The so-called favicon, which is the abbreviation o...

Docker overlay realizes container intercommunication across hosts

Table of contents 1. Docker configuration 2. Crea...

The whole process of installing mysql5.7.22 under ARM64 architecture

MySQL download address: https://obs.cn-north-4.my...

MySQL 8.0.23 installation and configuration method graphic tutorial under win10

This article shares the installation and configur...

In-depth understanding of JavaScript callback functions

Table of contents Preface Quick Review: JavaScrip...

Tutorial on installing php5, uninstalling php, and installing php7 on centos

First, install PHP5 very simple yum install php T...

Configuring MySQL and Squel Pro on Mac

In response to the popularity of nodejs, we have ...

Solve the problem of blank gap at the bottom of Img picture

When working on a recent project, I found that th...

Pure HTML+CSS to achieve Element loading effect

This is the effect of the Element UI loading comp...

Implementation example of nginx access control

About Nginx, a high-performance, lightweight web ...

Summary of important mysql log files

Author: Ding Yi Source: https://chengxuzhixin.com...

How to perform query caching in MySQL and how to solve failures

We all know that we need to understand the proper...

How to install JDK 13 in Linux environment using compressed package

What is JDK? Well, if you don't know this que...