smart_title

Simple functions to control the title of a html page

Usage no npm install needed!

<script type="module">
  import smartTitle from 'https://cdn.skypack.dev/smart_title';
</script>

README

smartTitle

Control the title of a HTML page with a single module

Reference

Functions

/* optional duration in milliseconds */
scroll("Title to scroll", [duration])
flash("Title to flash", [duration])

Options

sets the flash speed in milliseconds
options.flashSpeed

sets the scrol speed in milliseconds
options.scrollSpeed

Installation

npm install

npm i smart_title

code for your app

window.smartTitle = require("smart_title");

Example

window.smartTitle.flash("Hello World!");