Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • CSS Tutorial
  • CSS Exercises
  • CSS Interview Questions
  • CSS Selectors
  • CSS Properties
  • CSS Functions
  • CSS Examples
  • CSS Cheat Sheet
  • CSS Templates
  • CSS Frameworks
  • Bootstrap
  • Tailwind
  • CSS Formatter
Open In App
Next Article:
How to Create Jumping Text 3D Animation Effect using CSS ?
Next article icon

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 Code

We 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 Code

  • The 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 Code

In 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:

https://media.geeksforgeeks.org/wp-content/uploads/20240726130313/text2.mp4


Next Article
How to Create Jumping Text 3D Animation Effect using CSS ?

S

sirohimukul1999
Improve
Article Tags :
  • CSS
  • HTML
  • Web Technologies
  • Web Templates

Similar Reads

  • How to Create Jumping Text 3D Animation Effect using CSS ?
    In this article, you will learn to implement Jumping Texts animation effect using simple HTML and CSS. HTML is used to create the structure of the page and CSS is used to set the styling. HTML Code: In this section, we will design the basic structure of the body. [GFGTABS] html <!DOCTYPE html>
    4 min read
  • How to Create a Dot loading Animation using HTML and CSS?
    The Dot Loading animation can be used to enhance the user interface of a website, it can be added while the website loads. This animation can be easily created using HTML and CSS. HTML Code: In this section we will create the basic structure of the dot loader using a div tag which will have some spa
    2 min read
  • How to Create Text Color Animation using HTML and CSS ?
    The text color can be changed according to the programmer’s choice using CSS @keyframes rule. In this article, we will see how to create text color animation using HTML and CSS. Preview:Approach:Create an HTML file with a centered <div> containing an <h2> element.Use CSS to reset default
    1 min read
  • How to Create Circle Loading Animation Effect using CSS ?
    In this article, we will see how to create a circle-loading animation using HTML and CSS, along with understanding its basic implementation through the example. Generally, Loading Animation is utilized to wait for the content to be fully loaded on the webpage. If some pages don't contain the loader,
    6 min read
  • 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. [GFGTABS] html <!DOCTYPE html> <html lang
    2 min read
  • How to Create Animation Loading Bar using CSS ?
    Loading Bar with animation can be created using HTML and CSS. We will create a Loader that is the part of an operating system that is responsible for loading programs and libraries. The progress bar is a graphical control element used to visualize the progression of an extended computer operation, s
    3 min read
  • How to create Shooting Star Animation Effect using CSS ?
    The Shooting Star effect is one of the coolest background effects that is used for dark-themed websites. Shooting Stars Animation is an extraordinary illustration of a loading screen that grabs your eye for a considerable length of time for the remainder of the content to load on the website. This e
    4 min read
  • How to create a progress bar animation using HTML and CSS ?
    In this mini Web Development project we will utilize CSS animations and create a progress bar using them. The progress bar will start from zero and go to a certain extent as we want. The progress bar is basically showing the expertise of a programmer in different languages in animated form. Prerequi
    3 min read
  • How to create Incoming Call Animation Effect using CSS ?
    In this article, we will learn how to create an incoming call animation effect, by using CSS. Approach: To create this effect, we essentially need to animate the shadow effects around the element frame, which can be easily manipulated using the CSS box-shadow property. It is described by X and Y off
    2 min read
  • How to Create Sliding Text Reveal Animation using HTML & CSS ?
    In this article, we will implement sliding text reveal animation which can be used in personal portfolios, websites, and even in YouTube introduction videos to add an extra edge to our videos so that it looks more interesting and eye-catchy at first instance and the best part is that we will do that
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences