How to Design Fade balls loader Animation using CSS ? Last Updated : 02 Jan, 2023 Comments Improve Suggest changes Like Article Like Report Minimal Fading balls loader is a basic CSS animation, where the loader animation will be utilized to engage the user until when a specific page or content is fully get loaded in a particular platform. In this article, we will see how to create a loader animation with three balls animation effect which looks like the balls are fading away with some delay in their fading animation, for an infinite time period. We will also be using the easing out CSS function to smoothen, along with different CSS functions available for the animation. Syntax: @keyframes animation_name { keyframes-selector { css-styles; } }Approach: The following approach will be utilized to create the Fading balls loader animation, which is described below: Create the loader with a div with the class name spinner. Also, create 3 child span elements for the balls inside the <div> element.Add the styling to the body element with a black background and centered the elements.Style the spinner by adding the height and width. Center the child elements, along with styling the span balls with border-radius of 50% & add the background-color, and opacity as 0.Using the nth child selector property, add the animation to all 3 child elements with some delay in between them, with an infinite time period having a smooth ease-in-out effect.Make the keyframes for 0%, 100% with opacity 1, and for 60% with opacity 0. Example: This example illustrates the Fading balls loader animation in CSS. HTML <!DOCTYPE html> <html> <head> <style> body { display: grid; place-items: center; } .spinner { width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; } .spinner span { width: 20px; height: 20px; border-radius: 100%; background-color: rgb(0, 113, 128); opacity: 0; } .spinner span:nth-child(1) { animation: fade 1s ease-in-out infinite; } .spinner span:nth-child(2) { animation: fade 1s ease-in-out 0.33s infinite; } .spinner span:nth-child(3) { animation: fade 1s ease-in-out 0.66s infinite; } @keyframes fade { 0%, 100% { opacity: 1; } 60% { opacity: 0; } } </style> </head> <body> <h1 style="color:green"> GeeksforGeeks </h1> <h3 style="color:green"> Fading balls loader CSS Animation </h3> <div class="spinner"> <span></span> <span></span> <span></span> </div> </body> </html> Output: Comment More infoAdvertise with us Next Article How to Create Circle Loading Animation Effect using CSS ? S satyamm09 Follow Improve Article Tags : Technical Scripter Web Technologies CSS Technical Scripter 2022 CSS-Properties CSS-Questions +2 More Similar Reads How to create Gooey Balls animation using HTML & CSS ? The Gooey Balls loader is a basic CSS animation, where we will make a loader animation with two balls running in an animation effect that looks like the balls are rotating in motion. In this article, we will see how to create the rotating pass-through balls animation loader using HTML & CSS. App 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 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 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 Design Animated Google Loader using HTML and CSS The Google Loader consists of 4 circles with blue, red, yellow, and green colors. You can easily create them using HTML and CSS, and animate them to move the same as in the final output. The animation is just translating the circle in the Y axis with .25s time delay. For non-stop and fluid animation 2 min read How to bind an animation to a division element using CSS ? In this article, we will learn to bind an animation to a div tag using CSS.A div tag is used to separate the different sections of the contents of the webpage. It makes it very easy for the readers to notice the different sections of the webpage with their specific importance levels on the page. The 3 min read Like