How to Create Loading Blur Text Animation Effect using HTML and CSS? Last Updated : 25 Sep, 2024 Comments Improve Suggest changes Like Article Like Report The blur text animation is known as the Smoky effect and is used to give the text a blurry animation. The text blurs linearly in one direction and then reappears. In this article, we will create a loading blur text animation effect using HTML and CSS.Approach: The approach to create loading blur text animation is quite simple. We are animating the blur effect using the blur() function. Then we are using n-th child selector to select and apply the animation delay.HTML CodeWe have created a div element and the loading text characters are wrapped inside a span element. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content= "width=device-width, initial-scale=1.0" /> <title>GeeksforGeeks</title> </head> <body> <div class="geeks"> <span>G</span> <span>e</span> <span>e</span> <span>k</span> <span>s</span> <span>f</span> <span>o</span> <span>r</span> <span>G</span> <span>e</span> <span>e</span> <span>k</span> <span>s</span> </div> </body> </html> CSS CodeThe first step is simple we have aligned our text to center and provide a background to our body.Then we have provided a linear animation with keyframe identifier as animate.Now we use keyframes to apply blur function to different frames of the animation.The final step is the application of n-th child concept to provide an animation delay to each character so that only one character gets blurred at one point of time. CSS body { margin: 0; padding: 0; background: green; } .geeks { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; font-weight: 800; letter-spacing: 5px; } .geeks span { animation: animate 3s linear infinite; } .geeks span:nth-child(1) { animation-delay: 0s; } .geeks span:nth-child(2) { animation-delay: 0.1s; } .geeks span:nth-child(3) { animation-delay: 0.2s; } .geeks span:nth-child(4) { animation-delay: 0.3s; } .geeks span:nth-child(5) { animation-delay: 0.4s; } .geeks span:nth-child(6) { animation-delay: 0.5s; } .geeks span:nth-child(7) { animation-delay: 0.6s; } .geeks span:nth-child(8) { animation-delay: 0.9s; } .geeks span:nth-child(9) { animation-delay: 0.8s; } .geeks span:nth-child(10) { animation-delay: 0.9s; } .geeks span:nth-child(11) { animation-delay: 1s; } .geeks span:nth-child(12) { animation-delay: 1.1s; } .geeks span:nth-child(13) { animation-delay: 1.2s; } @keyframes animate { 0% { filter: blur(0); } 40% { filter: blur(20px); } 80% { filter: blur(0); } 100% { filter: blur(0); } } Complete CodeIn this section, we will combine both the above two code sections to create a loading text animation effect. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content= "width=device-width, initial-scale=1.0" /> <title> Loading Blur Text Animation Effect using HTML and CSS </title> <style> body { margin: 0; padding: 0; background: green; } .geeks { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; font-weight: 800; letter-spacing: 5px; } .geeks span { animation: animate 3s linear infinite; } .geeks span:nth-child(1) { animation-delay: 0s; } .geeks span:nth-child(2) { animation-delay: 0.1s; } .geeks span:nth-child(3) { animation-delay: 0.2s; } .geeks span:nth-child(4) { animation-delay: 0.3s; } .geeks span:nth-child(5) { animation-delay: 0.4s; } .geeks span:nth-child(6) { animation-delay: 0.5s; } .geeks span:nth-child(7) { animation-delay: 0.6s; } .geeks span:nth-child(8) { animation-delay: 0.9s; } .geeks span:nth-child(9) { animation-delay: 0.8s; } .geeks span:nth-child(10) { animation-delay: 0.9s; } .geeks span:nth-child(11) { animation-delay: 1s; } .geeks span:nth-child(12) { animation-delay: 1.1s; } .geeks span:nth-child(13) { animation-delay: 1.2s; } @keyframes animate { 0% { filter: blur(0); } 40% { filter: blur(20px); } 80% { filter: blur(0); } 100% { filter: blur(0); } } </style> </head> <body> <div class="geeks"> <span>G</span> <span>e</span> <span>e</span> <span>k</span> <span>s</span> <span>f</span> <span>o</span> <span>r</span> <span>G</span> <span>e</span> <span>e</span> <span>k</span> <span>s</span> </div> </body> </html> Output: Comment More infoAdvertise with us Next Article How to Create Loading Blur Text Animation Effect using HTML and CSS? S sirohimukul1999 Follow Improve Article Tags : HTML Similar Reads How to Create Ghost Text Animation on Hover using HTML and CSS? Ghost Text Animation can be used to give your website a spooky heading or sub-heading, this effect can be easily created using some simple HTML and CSS.HTML Code: In this section we have a ul tag which consists of some li tags displaying some text.html<!DOCTYPE html> <html lang="en"> 2 min read How to Create Animated Typing Effect using typed.js? Typed.js is a JavaScript library that is used to type a set of strings at the speed that you set, backspace what it's typed, and begin the typing with another string you have set.Let us start by creating a project folder and name it as per your wish. Create two files and name them as "index.html" an 3 min read How to create text stagger animation using TypographyMotion plugin ? In this article, we will learn how to create text stagger animation using TypographyMotion plugin. This plugin is completely based on HTML, CSS, and JavaScript. This is one of the multiple animation techniques which encourages incremental delay from one state to another giving nice visual interactiv 2 min read Text Animation using SVG Image What is SVG?SVG stands for Scalable Vector Graphics. It is an image format based on XML. It creates different geometric shapes that can be combined to make two-dimensional graphics.We are going to use an SVG image to create a text animation effect. The SVG images can be downloaded from the internet 15+ min read Google AMP fad-in Animation In AMP HTML pages adding visual effect is easy using the amp-fx-collection component which provides a range of collections of effects such as fade-in which a background image opacity keeps on increasing till is visible . Required Scripts: Importing the amp-fx-collection into the header. HTML <scr 2 min read Like