/GreatStars

Generate your own space

Primary LanguageJavaScriptMIT LicenseMIT

GreatStars v0.1

Create your own space with GreatStars

PREVIEW: here

Requirements

  • You need to include jQuery to use this Framework

How to use

  1. Download or clone the git.
  2. Import jQuery library
  3. Insert jQuery snippet to your document
 $(document).ready(function() {
 
    $(".stars").greatStars({
      number: 100,
      speed: 20,
      direction: "down",
      starClass: "star"
    });
                            
  });
  1. Insert HTML snippet like this
<div class="stars"></div>

Note: You can change the class 'stars' to whatever you want

Options

name value default description
number 100 100 Set the number of stars wich will generated (not more than 200 recommended)
speed 100 100 Moving speed of the Stars
direction down up Change the vertical direction between 'down' and 'up'
starClass star star Class for the single stars