12+ Lightweight CSS Loading Animations – NanoLoader

NanoLoader is a lightweight JavaScript/CSS library that provides 12+ smooth, animated, high-performance loading indicators built with CSS3 animations.

Features:

  • 15+ Built-in Colors: Pre-configured color classes including red, blue, green, yellow, orange, purple, pink, cyan, teal, indigo, lime, brown, gray, black, and white.
  • Multiple Size Options: Small and large size classes with support for custom dimensions via JavaScript.
  • 12+ Loader Styles: Circle, ripple, spinner, roller, pulse, wave, and Facebook-style animations among others.
  • Plug-and-Play Implementation: Simple HTML class-based system requiring minimal setup.

How to use it:

1. Download the package and link the stylesheet & script in your HTML file.

<link rel="stylesheet" href="path/to/nanoLoader.css">
<script src="path/to/nanoLoader.js"></script>

2. To add a loading animation to the page, create a <div> and assign it the base class nanoLoader, followed by classes for the style and color you want.

<!-- Blue circle loader -->
<div class="nanoLoader nl-circle nl-color-blue"></div>

<!-- Default spinner in green -->
<div class="nanoLoader nl-default nl-color-green"></div>

<!-- Large dual-ring in purple -->
<div class="nanoLoader nl-dual-ring nl-color-purple nl-size-lg"></div>

<!-- Small ellipsis loader in yellow -->
<div class="nanoLoader nl-ellipsis nl-color-yellow nl-size-sm"></div>

<!-- Facebook-style loader in red -->
<div class="nanoLoader nl-facebook nl-color-red"></div>

<!-- Grid loader in teal -->
<div class="nanoLoader nl-grid nl-color-teal"></div>

<!-- Heart loader in pink -->
<div class="nanoLoader nl-heart nl-color-pink"></div>

<!-- Hourglass loader in orange -->
<div class="nanoLoader nl-hourglass nl-color-orange"></div>

<!-- Large ring loader in cyan -->
<div class="nanoLoader nl-ring nl-color-cyan nl-size-lg"></div>

<!-- Small ripple effect in indigo -->
<div class="nanoLoader nl-ripple nl-color-indigo nl-size-sm"></div>

<!-- Roller loader in lime -->
<div class="nanoLoader nl-roller nl-color-lime"></div>

<!-- Spinner loader in brown -->
<div class="nanoLoader nl-spinner nl-color-brown"></div>

<!-- Bars loader in gray -->
<div class="nanoLoader nl-bars nl-color-gray"></div>

<!-- Large pulse loader in black -->
<div class="nanoLoader nl-pulse nl-color-black nl-size-lg"></div>

<!-- Small wave loader in white (on a dark background) -->
<div class="nanoLoader nl-wave nl-color-white nl-size-sm"></div>

3. You can use any of the 15+ pre-defined color classes:

  • nl-color-red
  • nl-color-blue
  • nl-color-green
  • nl-color-yellow
  • nl-color-orange
  • nl-color-purple
  • nl-color-pink
  • nl-color-cyan
  • nl-color-teal
  • nl-color-indigo
  • nl-color-lime
  • nl-color-brown
  • nl-color-gray
  • nl-color-black
  • nl-color-white

4. If you need a specific brand color, you can override the styles with your own CSS. For example, to create a gradient loader, you’d target the inner divs:

.my-custom-loader div {
  background: linear-gradient(45deg, #ff0080, #7928ca);
}

5. Control loader dimensions using size classes or JavaScript:

<!-- Small loader -->
<div class="nanoLoader nl-circle nl-color-blue nl-size-sm"></div>

<!-- Large loader -->
<div class="nanoLoader nl-ripple nl-color-red nl-size-lg"></div>
document.getElementById("myLoader").dataset.size = "80px";

FAQs

Q: Can I use multiple loaders on the same page?
A: Absolutely. You can implement multiple loaders with different styles, colors, and sizes on a single page without conflicts. Each loader operates independently.

Q: How does NanoLoader handle performance with multiple animations?
A: The library uses CSS transforms and hardware acceleration, which minimizes CPU usage. We’ve tested up to 20 simultaneous loaders without noticeable performance degradation on modern devices.

Q: Is it possible to create custom loader animations?
A: Yes, you can extend NanoLoader by creating custom CSS classes that follow the same naming convention.

Q: Can I modify animation speed and timing?
A: Yes, you can override the CSS animation properties to adjust timing, duration, and easing functions.

The post 12+ Lightweight CSS Loading Animations – NanoLoader appeared first on CSS Script.


Discover more from RSS Feeds Cloud

Subscribe to get the latest posts sent to your email.

Discover more from RSS Feeds Cloud

Subscribe now to keep reading and get access to the full archive.

Continue reading