Pixel Brush Animations jQuery Pixelbrush - Download jQuery Plugin For Pixel Brush Animations - Pixelbrush.js

Download jQuery Plugin For Pixel Brush Animations – Pixelbrush.js

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Pixel Brush Animations – Pixelbrush.js, hope it will help you in programming stack.

Pixel Brush Animations jQuery Pixelbrush - Download jQuery Plugin For Pixel Brush Animations - Pixelbrush.js

File Size: 76.1 KB
Views Total: 1022
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Pixelbrush.js is a fancy jQuery plugin that applies configurable ‘Pixel Brush’ animations to your images using JavaScript and HTML5 canvas.

How to use it:

1. Load the necessary JavaScript libraries as listed below:

1 <script src="//code.jquery.com/jquery-3.2.1.min.js"></script>
2 <script src="jquery.newPlugin.js"></script>
3 <script src="jquery.actual.min.js"></script>

2. Download and load the jQuery Pixelbrush.js script after jQuery library.

1 <script src="jquery.pixelbrush.js"></script>

3. Insert an image (Transparent PNG) to the webpage and config the ‘Pixel Brush’ animation using HTML ‘data’ attributes as these:

01 <img id="image-id"
02      data-plugin="pixelbrush"
03      data-mode="fade-in"
04      data-loop="false"
05      data-autostart="true"
06      data-ignore-class="hide"
07      data-interval="15"
08      data-oncomplete="doSomething();"
09      src="bird.png"
10      class="img-responsive hide">

4. You can also config the ‘Pixel Brush’ animation via JavaScript:

1 <img id="image-id"
2      src="bird.png"
3      class="img-responsive hide">
1 $('#image-id').pixelbrush({
2   loop: false,
3   mode: 'fade-in',
4   ignore_class: '',
5   interval: 15,
6   onComplete: function() { }
7 });

5. Animation types included:

  • fade-in
  • fade-out
  • focus
  • focus-in
  • unfocus
  • unfocus-out
  • bounce

This awesome jQuery plugin is developed by seanmsimon. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net