How to Create Wave Loader using CSS? Last Updated : 10 Oct, 2024 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 a Slider using HTML and 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 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 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 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 a marquee effect using CSS ? In this article, we will be creating the marquee effect by using HTML and CSS. This effect can be created by using the <marquee> tag in HTML, but we will not use this tag as it is not widely used nowadays. We will create and design a marquee effect by using the CSS classes and styling properti 2 min read Like