Create beautiful and customizable tooltips 🗨️ for your website 🎇


A simple example of the usage of the library is provided in this repository.


<script src="[email protected]/dist/toultip.min.js"></script>

NPM module

Install the npm module

npm install toultip

And import it in your project

const Toultip = require('toultip');

⚠️ You will need to bundle the package with your application (for example with browserify) because this library only works in the browser

browserify index.js -o bundle.js

Setting up

You can import the library into you website with JsDelivr or, you can use the npm module and import it in your project.

You also need to import the css file to your website

<link rel="stylesheet" href="[email protected]/dist/themes/toultip-default.min.css">

Your first tooltip 💫

To add a tooltip to an element of your website, just add a toultip attribute to it.

<h1 toultip="Hello, I am a tooltip generated with toultip.js!">Hover me!</h1>

At the end of the body, you must run


This function can take one parameter which is the timeout in milliseconds before showing the tooltip.


If you have any problem, don’t hesitate to open an issue

Contributing 💪

  1. Start by forking this repository

  2. Then clone your fork to your local machine.

git clone
  1. Install dev dependencies
npm install --save-dev
  1. Create a new branch
git checkout -b super-cool-feature
  1. Then make your changes

  2. Update the changelog and version number if needed (using Semantic Versioning) also, update the version number in the JsDelivr links (js and css)

# bug fix
npm version patch --no-git-tag-version

# add a new feature 
npm version minor --no-git-tag-version

# changes that break backwards compatibility
npm version major --no-git-tag-version
  1. List and correct linting errors
npm run lint
  1. Update the minified/browser version of the library
npm run build
  1. Once you’re done, commit your changes and push them to the remote repository.

git add --all
git commit -m "Add super-cool-feature"
git push origin super-cool-feature
  1. Then, open a pull request on GitHub from your fork.
    1. Go to this link
    2. Click compare across forks
    3. On the right, on head repository select your fork
    4. And on compare select the branch you just created
    5. Click on Create Pull Request and submit your pull request


View Github