Pure CSS code to achieve flow and dynamic line effects

Pure CSS code to achieve flow and dynamic line effects

Ideas:
An outer box sets the background; an inner box sets the width and height of the background, and sets animate to make the box move

demo:

CSS part:

@keyframes mymove {
  from{left:0px;}
  to{left:70px;}
}
.father{
background: #748096;
border-radius:5px;
position: relative;
top: 70px;
left: -5px;
}

.moveson {
width:20px;
height:8px;
background:#a0e80c;
border-radius: 5px;
animation:mymove 2s linear infinite;
position:relative;
}

HTML part:

<div class="father">
     <div class="moveson"></div>
</ediv>

Summarize

This concludes this article about how to use pure CSS to achieve flow and dynamic line effects. For more information about how to use CSS to achieve flow and dynamic line effects, please search previous articles on 123WORDPRESS.COM or continue browsing the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  Summary of methods to include file contents in HTML files

>>:  Javascript Virtual DOM Detailed Explanation

Recommend

JavaScript implements an input box component

This article example shares the specific code for...

Several common redirection connection example codes in html

Copy code The code is as follows: window.location...

HTML page native VIDEO tag hides the download button function

When writing a web project, I encountered an intr...

Detailed explanation of Vue-router nested routing

Table of contents step 1. Configure routing rules...

Linux hardware configuration command example

Hardware View Commands system # uname -a # View k...

How to implement Mysql scheduled task backup data under Linux

Preface Backup is the basis of disaster recovery....

Detailed explanation of custom events of Vue components

Table of contents Summarize <template> <...

Discussion on the numerical limit of the ol element in the html document

Generally speaking, it is unlikely that you will ...

Introduction to JavaScript strict mode use strict

Table of contents 1. Overview 1.1 What is strict ...

An article teaches you how to use Vue's watch listener

Table of contents Listener watch Format Set up th...

Use the Linux seq command to generate a sequence of numbers (recommended)

The Linux seq command can generate lists of numbe...

Example of how to exit the loop in Array.forEach in js

Table of contents forEach() Method How to jump ou...

Vue advanced usage tutorial dynamic components

Table of contents Basic description AST parsing R...