This time I will share jQuery Plugin and tutorial about Create Fantastic Canvas Based Bubble Animations – circleMagic.js, hope it will help you in programming stack.
circleMagic.js is a jQuery plugin that lets you create a fantastic bubble animation effect for the background of any container by using HTML5 canvas API.
How to use it:
1. Load the latest version of jQuery library and the jQuery circleMagic.js
script at the end of the document.
1 |
< script src = "//code.jquery.com/jquery-3.2.1.slim.min.js" ></ script > |
2 |
< script src = "circleMagic.min.js" ></ script > |
2. Call the main function circleMagic
on the target container on which you want to generate the bubble animation effect.
1 |
$( '.container' ).circleMagic({ |
3. Customize the bubble animation effect by overriding the default values as shown below to your taste.
1 |
$( '.container' ).circleMagic({ |
3 |
color: 'rgba(255,255,255,.5)' , |
Change log:
2017-07-31
- rewrite for pre-ES6 browsers
This awesome jQuery plugin is developed by FreAK19. For more Advanced Usages, please check the demo page or visit the official website.