Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manufosela/shootingstar

Show shooting stars every N seconds using jQuery.
https://github.com/manufosela/shootingstar

Last synced: about 1 month ago
JSON representation

Show shooting stars every N seconds using jQuery.

Awesome Lists containing this project

README

        

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