Rotating Preloader with Anime.js
How do I make an rotating preloader with anime.js?
I came across this beauty of a design on Dribbble and just had to code it! https://dribbble.com/shots/3308544-Preloader-IV. What is a rotating preloader with anime.js? How do you make a rotating preloader with anime.js? This script and codes were developed by Sandro Walet on 12 June 2022, Sunday.
Rotating Preloader with Anime.js - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Rotating Preloader with Anime.js</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="center"> <div class="loader blur"> <div class="circle circle-1"></div> <div class="circle circle-2"></div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.0/anime.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Rotating Preloader with Anime.js - Script Codes CSS Codes
body { background-color: #1b1941;
}
.center { position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%);
}
.circle { width: 50px; height: 50px; background-color: #fff; display: inline-block; border-radius: 50%; margin: 0 16.66666667px; box-shadow: 0 -5px 5px 1px rgba(0, 0, 0, 0.2);
}
.circle-1 { background-color: #ffc300; background: linear-gradient(#ff8700, #ffcf33);
}
.circle-2 { background-color: #ff004b; background: linear-gradient(#ff0039, #ff4d81);
}
Rotating Preloader with Anime.js - Script Codes JS Codes
var circle = anime ({ targets: ['.loader'], rotate: 180, duration: 1600, loop: true, elasticity: 600, easing: 'easeOutElastic', delay: function(el, index) { return index * 80; },
});
Developer | Sandro Walet |
Username | tamashi |
Uploaded | June 12, 2022 |
Rating | 4 |
Size | 2,450 Kb |
Views | 176,088 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Expanding Share Button | 3,746 Kb |
A Pen by Sandro Walet | 1,923 Kb |
Gooey Preloader with Anime.js | 2,469 Kb |
Material Inspired Panel | 2,159 Kb |
Bounce.js Hover Animation | 2,336 Kb |
Current indicator | 2,598 Kb |
Material inspired grid | 4,443 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Background Images | Jooonebug | 2,100 Kb |
Two tables and header with jspdf-autotable | Someatoms | 2,245 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Sass Radar | Jlong | 6,887 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!