WEBLEB
Home
Editor
Login
Pro
English
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Fraction of Animation
1276
creativewiz
Open In Editor
Publish Your Code
Recommended
11 October 2025
CSS Loading Animation Snippet
10 August 2024
Clock Animation
25 August 2024
Onscroll Animation: Dynamic Content Scroll with ScrollMagic
HTML
Copy
Fraction of animation
CSS
Copy
<!-- Replace with your HTML Code (Leave empty if not needed) --> * { margin: 0; padding: 0; box-sizing: border-box; } section{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #042104; animation: animateBgColor 4s linear infinite; } .loader{ position: relative; } .loader span{ position: absolute; top: 0; left: -200px; width: 200px; transform-origin: right; transform: rotate(calc(18deg * var(--i))); } .loader span::before{ content: ''; position: absolute; left: 0; width: 150px; height: 15px; background: hsl(0, 100%, 50%); border-radius: 50%; animation: animate 5s linear infinite; animation-delay: calc(-0.1s * var(--i)); box-shadow: 0 0 20px #00ff0a, 0 0 40px #00ff0a, 0 0 60px #00ff0a, 0 0 80px #00ff0a, 0 0 100px #00ff0a, 0 0 120px #00ff0a; } @keyframes animate{ 0% { transform: translateX(0) scale(0.5); } 50% { transform: translateX(200px) scale(1); } 100% { transform: translateX(0) scale(0.5); } }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */