Skip to content
Some blinking stars in CSS3 with fallback option
JavaScript CSS HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


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.

You can’t perform that action at this time.