Animate Heartcodes Canvas Loader With jQuery | CanvasLoader

CanvasLoader is a jQuery plugin that uses the Html5 canvas element to create an animated (preloader) with an overlay appended to the Html element.

jquery loading spinner overlay example, preloader animation jquery, preloader jquery, page loader jquery example, jquery loader plugin, page preloading effect jquery

Single Element Pure CSS Spinners & Loaders | loaderskit

How to make use of it:

1. Include the necessary jQuery CanvasLoader javascript.

<script type="text/javascript" src="heartcode-canvasloader.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

2. Include the jQuery canvasLoader plugin after the jQuery library.

<script src="index.js"></script>

3. Configure the plugin to append a loader to a DIV element.

jQuery(function ($) {
"use strict";
var element = $('<div></div>').css({
width: 500,
height: 500,
border: '3px dashed green'
}).appendTo('body');

/**
 * Initial display canvas loader
 */
element.canvasLoader({
color: '#ff0000'
});

/**
 * Remove canvas loader on the origin instance
 */
element.canvasLoader(false);

/**
 * Reactivate canvas loader on the origin instance
 */
element.canvasLoader(true);

/**
 * Remove canvas loader by event if the origin instance is not available
 */
$(element).trigger('stop.canvasLoader');

/**
 * Manipulate options of current canvas loader instance
 */
element.canvasLoader.options.color='#008000';

/**
 * Reactivate canvas loader by event if the origin instance is not available
 */
$(element).trigger('start.canvasLoader');

/**
 * Manipulate default options
 */
$.fn.canvasLoader.options.color = '#0000ff';

/**
 * Get current version.
 * @type {string}
 */
var version = $.fn.canvasLoader.version;

});

4. Available options.

//  enable the loader during initialization
start: true,

// oval, square, rect(rectangle), roundRect(rounded rectangle) and spiral
shape: 'spiral', 

// Sets hexadecimal color of the loader
color: '#000', 

// Sets the diameter of the loader
diameter: 70, 

// Sets the number of shapes drawn on the loader canvas
density: 70, 

// Sets the amount of the modified shapes in percent.
range: 0.7, 

// Sets the speed of the loader animation.
speed: 2, 

// Sets the rendering frequency.
fps: 24 

Draw and Animate PreLoaders, jQuery.CanvasLoader Plugin/Github


See Demo And Download

Official Website(orianda): Click Here

This superior jQuery/javascript plugin is developed by orianda. For extra Advanced usage, please go to the official website.

Related Posts

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Leave a Reply

Your email address will not be published. Required fields are marked *