Skip to content

A slider, in your favicon. Beautiful. No screen estate goes unused.

License

Notifications You must be signed in to change notification settings

superfein/favicon-slider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Favicon Slider

This library will throw a party in your browser bar.

It will draw a new character as your favicon every second, so you can show a text message.

Favicon Slider in action (GIF)

Usage

Just include the JavaScript file and you're good to go.

In a browser:

<script src="favicon-slider.js"></script>

Using an AMD loader like RequireJS:

require(['favicon-slider'], function (faviconSlider) {
	console.log(faviconSlider);
});

Configuration

Favicon Slider comes with various options, which should speak for themselves.

faviconSlider.setSpeed(1000);
faviconSlider.setText("YourText");
faviconSlider.setBackgroundColor("#000");
faviconSlider.setTextColor("#fff");
faviconSlider.stop();
faviconSlider.start();

A fully customised example utilising all the configuration options is given in example.html.

License

Favicon Slider is available under the MIT License.

About

A slider, in your favicon. Beautiful. No screen estate goes unused.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.8%
  • HTML 13.2%