Some blinking stars in CSS3 with fallback option
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit 38b0fd2 Apr 13, 2016
Permalink
Failed to load latest commit information.
LICENSE Initial commit Apr 13, 2016
README.md Update README.md Apr 13, 2016
blinkingstars.css Initial version Apr 13, 2016
blinkingstars.js Initial version Apr 13, 2016
index.html Initial version Apr 13, 2016
stars.png Initial version Apr 13, 2016

README.md

css-blinking-stars

Some blinking stars in CSS3 gradients and animations, with a fallback option.

Created by Jose Manuel Gómez Poveda for the Night Earth website.

To add stars to your website, just add the following lines to the head section:

<script src="blinkingstars.js"></script>
<link rel="stylesheet" type="text/css" href="blinkingstars.css">

And the following line at the beginning of the body section:

<div id="blinkingstars"></div>

You must include the following files in your project (or embed their content):

  • blinkingstars.css
  • blinkingstars.js

Optionally, if you want static stars in addition to the blinking ones, include the file "stars.png" as well, and use the "staticstars" ID in the div:

<div class="staticstars" id="blinkingstars"></div>

If you found this useful, please provide the corresponding attribution and/or link to this repository.