Show shooting stars every N seconds using jQuery.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img first version code Aug 27, 2013
README.md
ShootingStarClass.js
ejemplo1.html

README.md

shootingstar

This example run in http://codepen.io/manufosela/pen/Gymih

Show shooting stars every 10 seconds using jQuery.

Javascript ShootingStar class Main Methods:

      * launch: launch shooting stars every N seconds received by param. 10 seconds by default.
      
      * launchStar: launch a shooting star. Received options object by param with:
         - dir (direction between 0 and 1)
         - life (between 100 and 400)
         - beamSize (between 400 and 700)
         - velocity (between 2 and 10)

This example use a sky .stars css class taken from http://codepen.io/juliangarnier/pen/hzDAF