Fork me on GitHub

jquery.imgExplosion Demos

Using Defaults

The library comes with a star graphic, assumed stored in /img/star.png, which it uses as the default:

Simplest Invocation (defaults)

    imgExplosion();

Advanced: No Explode, Static Position, Using Images on the Page, etc

in place, fade, no-rotate, fast, lots

    $.fn.imgExplosion({
        inPlace:true,
        rot:false,
        interval:200,
        explode:false,
        num:50
    });

Throw at an angle

    $('#Ninja').imgExplosion({
        angle:true
    });

Alternate throwing top/bottom

    $('#Circle').imgExplosion({
        alternate:true
    });

Alternate at angle

    $('#Shocked').imgExplosion({
        angle:true,
        alternate:true
    });

Burst

    $('#Burst').imgExplosion({
        angle:true,
        centerOn:this,
        interval:2,
        minThrow:500,
        maxThrow:1300,
        angle:true,
        explode: false,
        extraWidth:200,
        rotateSpeed:30
    });