---
title: "Discussion on \"How to Implement a bouncing loader animation with CSS\" | Hashnode"
description: "Discussion on \"How to Implement a bouncing loader animation with CSS\". Code Samples:\nHTML\n<div class=\"bouncing-loader\">\n  <div></div>\n  <div></div>\n  <div></div>\n</div>\n\nCSS\n@keyframes bouncing-loader {\n  to {\n    opacity: 0.1;\n    transform: translate3d(0, -1rem, 0);\n  }\n}\n.bouncing-loader {\n  display: flex;\n  justify-..."
url: "https://hashnode.com/posts/how-to-implement-a-bouncing-loader-animation-with-css/63b34c2fd208a5d66f05f985"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Implement a bouncing loader animation with CSS](https://saintvandora.hashnode.dev/how-to-implement-a-bouncing-loader-animation-with-css?utm_source=hashnode&utm_medium=feed)

Code Samples: HTML <div class="bouncing-loader"> <div></div> <div></div> <div></div> </div> CSS @keyframes bouncing-loader { to { opacity: 0.1; transform: translate3d(0, -1rem, 0); } } .bouncing-loader { display: flex; justify-...

Jan 2, 2023 · 2 min read · saintvandora.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css](https://hashnode.com/tag/css)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#programming](https://hashnode.com/tag/programming)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[FOLASAYO SAMUEL OLAYEMI](https://hashnode.com/@Saint-Vandora)

@Saint-Vandora · Nigeria

  
[View profile](https://hashnode.com/@Saint-Vandora)

Infrastructure & DevOps Engineer

I am an Infrastructure and DevOps Engineer specializing in designing, building, and operating scalable, secure, and highly available cloud infrastructure. My core focus is on Microsoft Azure cloud platforms, Infrastructure as Code (IaC), and DevOps automation to support reliable production systems. I work across cloud infrastructure engineering, DevOps practices, and site reliability engineering (SRE) principles to ensure systems are resilient, observable, and optimized for performance, cost, and scalability. My experience includes designing and managing cloud environments across compute, networking, storage, identity, and security layers. I build Infrastructure as Code solutions using Terraform and Azure Resource Manager (ARM) templates to automate provisioning, configuration, and deployment of cloud resources. I am actively involved in improving system reliability through monitoring, logging, and incident response processes using tools such as Azure Monitor and cloud-native observability solutions. I also participate in on-call operations, production support, and incident management to ensure high availability of critical systems. Security is a core part of my engineering approach. I work with identity and access management (IAM), Azure Active Directory, and cloud security best practices to ensure infrastructure remains compliant, secure, and audit-ready in line with industry standards such as ISO 9001 and ISO 27001. I collaborate with cross-functional teams including software engineers, DevSecOps, and product teams to deliver infrastructure solutions for customer-facing applications and enterprise platforms. My technical interests and growth areas include: Cloud Infrastructure Engineering (Azure, AWS, GCP) Site Reliability Engineering (SRE) Platform Engineering Kubernetes &amp; Container Orchestration Infrastructure as Code (Terraform, ARM) CI/CD Pipeline Automation Distributed Systems &amp; System Design Cloud Security &amp; Identity Management I am passionate about building systems that are not only scalable and efficient but also reliable and easy for engineers to use. I am continuously growing my expertise toward senior-level Infrastructure, SRE, and Platform Engineering roles, including global remote opportunities.

## Responses 2

Markdown supported · ⌘↵ to post

[FOLASAYO SAMUEL OLAYEMI](https://hashnode.com/@Saint-Vandora)

[Jan 5, 2023](https://hashnode.com/posts/how-to-implement-a-bouncing-loader-animation-with-css/63b34c2fd208a5d66f05f985/comment/63b641b173ee0387bc7a9f59)

Wow! Thank you so much bro. I really appreciate your comment.

[Maciek Fitzner](https://hashnode.com/@MackFitz)

[Jan 3, 2023](https://hashnode.com/posts/how-to-implement-a-bouncing-loader-animation-with-css/63b34c2fd208a5d66f05f985/comment/63b3e14c92f96075bc8587d1)

Very neatly explained. My favorite part of CSS here is the nth-child(n) pseudo-class. It pains me that there is no quick, elegant way to fetch the n value and use it elsewhere in CSS. All we have is the user-defined variables. For instance, here's what I do:

div:nth-child(1) { --nth: 1; } / _and so forth for all remaining children_ /

or, better yet

div:nth-child(1) { --step: 0; / _a value that is n-1 - and indeed, it might be useful to list a value of 0, too_ / }

With that, you can now use animation-delay in the general div styling:

div { animation-delay: calc( 0.2s \* var(--step) ); }

This way, if you decide you'd like the animation to be slower - and consequently, the delays to be longer - you just need to edit the general formula rather than the value for each child. This might seem like too much hassle for just three elements - but does come in handy when there are more. You can also use the --step/--n variable for other things, like:

background-color: hsl( calc( var(--step) _120deg ) 100% 50%); /_ 120deg being 1/3 of a full turn \*/
