home page Site building tutorial web front end text

Pure CSS realizes cursor typing effect, pure CSS typing dynamic effect

This article mainly introduces the pure CSS implementation of typing animation effect, which displays the characters in a paragraph of text one by one, and simulates a typing effect. Through this effect, we can improve the sense of web design. I hope this introduction can have some reference value for everyone's learning or work

This article mainly introduces Pure css Realize the typing animation effect, display the characters in a paragraph of text one by one, simulate a typing effect, and improve the web page through this effect Design I hope that the introduction of this article can have some reference value for your study or work

The effect is as follows:

 Pure CSS realizes cursor typing effect, pure CSS typing dynamic cursor typing effect word break white space loading CSS typing animation Figure 1

Create an HTML page and add the following html code to the body:

 <p class="load-text"> loading ...</p>

CSS code:

 /*Cursor animation*/ @keyframes caret { 50% { border-color:transparent; } }/*Text animation: from width 0*/ @keyframes text { from { width:0; } }.load-text { width:11ch; margin:0 auto; overflow:hidden; word-break :keep-all; color:#b1f1f3; border-right:3px solid #000000; font:bold 400% monospace; animation :caret 0.5s step-end infinite,text 5s infinite steps(11); }

Note: width in css code: 11ch and eleven Set according to the character length.

Reward
poster

Statement: Some of the resources on this site are original works on the site, and some are publicly shared and collated based on the Internet. The copyright belongs to the original author.
If it infringes your rights, please contact our website, and we will deal with it as soon as possible. Thank you. Please indicate the source of the transfer

Link to this article: https://www.umtheme.com/web/212.html

Related recommendations

 CSS cardioid winding rotation effect

CSS cardioid winding rotation effect

CSS heart-shaped winding and rotating effect is an interesting animation effect, which can bring romantic and dynamic atmosphere to web pages. This effect will rotate a heart-shaped pattern infinitely, and twist around a central point at the same time
web front end 2023.09.13 zero two thousand seven hundred and twenty
 Create css3 animation effects commonly used in h5

Create css3 animation effects commonly used in h5

Css3 provides many powerful special effects that can be used to achieve a variety of effects. Here are some common css3 effects that I summarize, which can be directly referenced if necessary: 1. Zoom in when levitating:. one {transition: All 0.4s&nb
web front end 2023.09.13 one two thousand six hundred and sixty-seven
Post comments

Thank you for your support