This time I will share jQuery Plugin and tutorial about Create Halloween Bats Flying Around The Page With jQuery, hope it will help you in programming stack.
A fancy jQuery plugin designed for Halloween that displays a swarm of bats (or any other images) flying around the webpage.
Easy to implement and highly customizable. The bats are animated using the Sprite Sheet Animation technique.
How to use it:
1. Download the package and insert the JavaScript halloween-bats.js after you load the latest jQuery library.
1 |
< script src = "/path/to/cdn/jquery.min.js" ></ script > |
2 |
< script src = "/path/to/halloween-bats.js" ></ script > |
2. Initialize the plugin and done.
1 |
window.halloweenBats = $.halloweenBats({ |
3. Override the default bat image.
1 |
window.halloweenBats = $.halloweenBats({ |
4. And then customize the sprite sheet accordingly.
01 |
window.halloweenBats = $.halloweenBats({ |
5. Customize the z-index property.
1 |
window.halloweenBats = $.halloweenBats({ |
6. Determine where to apply the animation. Default: body.
1 |
window.halloweenBats = $.halloweenBats({ |