Lädt...


🔧 Interactive Loading Animation with CSS


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

This project demonstrates how to create an engaging loading animation using pure CSS.
The animation features a rotating background color and a loader composed of** 20 spinning dots **that pulsate sequentially. The background hue shifts continuously, creating a dynamic visual effect. Each dot is positioned using CSS variables and animated with keyframes to scale up and down in a rhythmic pattern.

Key Features:

  • Rotating Background: Smooth color transitions using hue-rotate.
  • Pulsating Dots: Sequential animation delays for a wave effect.
  • Pure CSS: No JavaScript required, ensuring lightweight performance.

Usage

  • Embed the HTML in your webpage.
  • Add the CSS to your stylesheet.
  • Adjust the number of spans and their styles as needed for different visual effects. This loader is perfect for adding a modern, visually appealing touch to your web projects.

HTML

<section>
<div class="loader">
<span style="--i:1;"></span>
<span style="--i:2;"></span>
<span style="--i:3;"></span>
<span style="--i:4;"></span>
<span style="--i:5;"></span>
<span style="--i:6;"></span>
<span style="--i:7;"></span>
<span style="--i:8;"></span>
<span style="--i:9;"></span>
<span style="--i:10;"></span>
<span style="--i:11;"></span>
<span style="--i:12;"></span>
<span style="--i:13;"></span>
<span style="--i:14;"></span>
<span style="--i:15;"></span>
<span style="--i:16;"></span>
<span style="--i:17;"></span>
<span style="--i:18;"></span>
<span style="--i:19;"></span>
<span style="--i:20;"></span>
</div>
</section>

CSS

`

`
body, html {
margin: 0;
padding: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width:100%;
background: #042104;
animation: animateBg 10s linear infinite;
}

@keyframes animateBg {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}

section .loader {
position: relative;
width: 120px;
height: 120px;
}

section .loader span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: rotate(calc(18deg * var(--i)));
}

section .loader span::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 15px;
height: 15px;
background: #00ff0a;
border-radius: 50%;
box-shadow: 0 0 10px #00ff0a,
0 0 20px #00ff0a,
0 0 40px #00ff0a,
0 0 60px #00ff0a,
0 0 80px #00ff0a,
0 0 100px #00ff0a;
animation: animate 2s linear infinite;
animation-delay: calc(0.1s * var(--i));
}

@keyframes animate {
0% {
transform: scale(1);
}
80%, 100% {
transform: scale(0);
}
}
`
`

...

🔧 Interactive Loading Animation with CSS


📈 44.88 Punkte
🔧 Programmierung

🔧 Animation -17 : Staggered Stair Loading Animation


📈 38.26 Punkte
🔧 Programmierung

🔧 Animation -22 : Cube Flipping Loader CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -19 : Simple preloader CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -18 : Pure CSS Gooey Loader Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -13 : Simple Content Preload CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 A cool loading animation in CSS pure


📈 33.31 Punkte
🔧 Programmierung

🔧 I built these 5 types of loading animation in HTML and CSS, which do you prefer?


📈 33.31 Punkte
🔧 Programmierung

🔧 Amazing Loading Animation Using Html Css and Javascript.


📈 33.31 Punkte
🔧 Programmierung

🔧 30 Free CSS Loading Animation for your website in 2023


📈 33.31 Punkte
🔧 Programmierung

🔧 CSS Loading Animation - 1


📈 33.31 Punkte
🔧 Programmierung

🔧 Introduction of CSS, What is CSS, Why we use CSS and How CSS describe the HTML elements


📈 32.45 Punkte
🔧 Programmierung

🐧 Pencil2D Animation - Opensource animation software


📈 26.12 Punkte
🐧 Linux Tipps

🔧 Rendering( or How to Render) Animation in JSON format with LottieFiles animation in React application


📈 26.12 Punkte
🔧 Programmierung

🔧 Specify how multiple animation effects should composite with `animation-composition`


📈 26.12 Punkte
🔧 Programmierung

🔧 How to Upload Files With Vanilla JavaScript and Add a Loading Animation


📈 25.2 Punkte
🔧 Programmierung

🔧 Loading animation with a ball


📈 25.2 Punkte
🔧 Programmierung

🪟 How to make Loading Animation in PowerPoint


📈 25.2 Punkte
🪟 Windows Tipps

🕵️ event-notifier Plugin up to 1.2.0 on WordPress Loading Animation cross site scripting


📈 25.2 Punkte
🕵️ Sicherheitslücken

📰 How to enable the new page loading animation in Chrome


📈 25.2 Punkte
Web Tipps

📰 How to enable the new page loading animation in Chrome


📈 25.2 Punkte
🖥️ Betriebssysteme

📰 How to enable the new page loading animation in Chrome


📈 25.2 Punkte
🖥️ Betriebssysteme

🍏 Adobe Animate 24.0 - Animation authoring environment for creating interactive content.


📈 24.63 Punkte
🍏 iOS / Mac OS

🔧 Choosing the Right CSS Approach: Tailwind CSS vs Bootstrap vs Vanilla CSS


📈 24.34 Punkte
🔧 Programmierung

🔧 A BRIEF REVIEW OF CSS CASCADING, CSS SELECTORS and CSS SPECIFICITY.


📈 24.34 Punkte
🔧 Programmierung

🔧 Stylify CSS: Automagic CSS bundles splitting into CSS layers in Astro.build


📈 24.34 Punkte
🔧 Programmierung

🔧 CSS Grid: Moving From CSS Frameworks To CSS Grid (2018 and beyond)


📈 24.34 Punkte
🔧 Programmierung

🕵️ Low CVE-2022-2169: Dwbooster Loading page with loading screen


📈 24.28 Punkte
🕵️ Sicherheitslücken

🔧 Lazy loading vs Eager loading


📈 24.28 Punkte
🔧 Programmierung

🔧 Laravel Eager Loading – Loading Relationships Efficiently with Eloquent


📈 24.28 Punkte
🔧 Programmierung

🎥 From fast loading to instant loading


📈 24.28 Punkte
🎥 Video | Youtube

📰 Focus Home Interactive – Publisher übernimmt Entwicklerstudio Deck 13 Interactive


📈 23.14 Punkte
📰 IT Nachrichten

matomo