How to Create Wave Loader using CSS? Last Updated : 15 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Creating a Wave Loader using CSS involves designing an animation that mimics wave-like motion, typically used to indicate loading progress. It is achieved through CSS animations, keyframes, and transformations to animate multiple elements sequentially, creating a flowing, wave-like effect.ApproachHTML Structure: Use a <div> container with multiple <span> elements to represent the wave bars.Centering the Loader: Position the <div> absolutely in the center using transform: translate(-50%, -50%).Span Styling: Style each <span> as vertical bars with a fixed width, margin, and background color.Animation Timing: Apply @keyframes animation for height changes, with staggered delays for each <span>.Wave Animation: Animate the height from 0 to 50px and back to 0, creating a wave effect.Example: Here we are following the above-explained approach. html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Wave Loader</title> </head> <style> * { margin: 0; padding: 0; } div { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; } span { height: 30px; width: 7px; margin-right: 10px; background-color: green; animation: loading 1s linear infinite; } span:nth-child(1) { animation-delay: 0.1s; } span:nth-child(2) { animation-delay: 0.2s; } span:nth-child(3) { animation-delay: 0.3s; } span:nth-child(4) { animation-delay: 0.4s; } span:nth-child(5) { animation-delay: 0.5s; } @keyframes loading { 0% { height: 0; } 25% { height: 25px; } 50% { height: 50px; } 100% { height: 0; } } </style> <body> <div> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> </div> </body> </html> Output: Comment More infoAdvertise with us Next Article How to Create Wave Background using CSS? L lakshgoel204 Follow Improve Article Tags : Web Technologies CSS CSS-Questions Similar Reads How to Create Wave Background using CSS? A wave background is a design element having wavy patterns or shapes used to add movement in the web pages. The :before pseudo-element can be used to create a wavy background by applying it to an element and using CSS properties like clip-path to create wave shapes.Using :before pseudo-elementTo cre 2 min read How to Create Wave Background using CSS? A wave background is a design element having wavy patterns or shapes used to add movement in the web pages. The :before pseudo-element can be used to create a wavy background by applying it to an element and using CSS properties like clip-path to create wave shapes.Using :before pseudo-elementTo cre 2 min read How to create wave ball effect using CSS? Wave ball effect is a new entry in the world of animation effects that are used in the designing of modern web apps. In this effect, we have some balls which are animated like a wave. Now you can add different elements to it make it unique like a different color for balls and animation-delay or by c 3 min read How to Create a Slider using HTML and CSS? A slider (also called a slideshow) is a sequence of content frames that users can navigate through. Creating a slider using just HTML and CSS is efficient because it doesn't require JavaScript, making it lightweight and fast. The slider can contain images, text, or any other content you want to show 3 min read How to Create a Slider using HTML and CSS? A slider (also called a slideshow) is a sequence of content frames that users can navigate through. Creating a slider using just HTML and CSS is efficient because it doesn't require JavaScript, making it lightweight and fast. The slider can contain images, text, or any other content you want to show 3 min read How to create advanced Loading Screen using CSS ? In this article, we are going to build an advanced version of a wave-like structure for loading screens using HTML and CSS. The loading screen is useful when a certain page took a few seconds to load the content of the webpage. If a certain webpage doesnât contain the loading screen then at the time 2 min read Like