jQuery Plugin For Fancy Smoke Effects - Audero Smoke Effect

File Size: 44.4 KB
Views Total: 5836
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin For Fancy Smoke Effects - Audero Smoke Effect

Audero Smoke Effect is a jQuery plugin that allows you to create animated Smoke Effects (such as smoke puff, cloud, etc) that appear from the given html elements on your website. Good for food and restaurant website designs.

Basic Usage:

1. Include the latest jQuery library and jQuery Audero Smoke Effect Plugin in the header

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../src/jquery.auderoSmokeEffect.js"></script>

2. Insert a image on your webpage

<img id="demo" src="images/chicken.png" />

3. Call the plugin with options

<script>
$(window).load(function () {
   $("#demo").auderoSmokeEffect({
      imagePath: "images/smoke.png"
   });
});
</script>

4. Options

//  The path to locate the smoke image. 
// This is the only required property.
imagePath: null, 

//  The state of the animation. 
// If the value is false, the animation will stop keeping its current options.
isEnabled: true, 

//  The width of the image shown to simulate the smoke. 
// If the value is 0, the width of the image will be used.
width: 0, 

//  The height of the image shown to simulate the smoke. 
// If the value is 0, the height of the image will be used.
height: 0, 

// The number of times to repeat the animation. 
// -1 means unlimited.
repeat: -1, 

// The time (milliseconds) between animations. 
// Set to random to have a random time.
pause: 2000, 

//  The time (milliseconds) taken by the animation.
speed: 4000, 

// The X coordinate used as start point for the animation. 
// If the value is null, the effect will run at the center of the element, based on its width.
posX: null, 

// The Y coordinate used as start point for the animation. 
// If the value is null, the effect will run at the center of the element, based on its height.
posY: null, 

Change log:

2015-12-31

  • Released version 1.2.0

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