npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cooltipz-css

v2.3.0

Published

Cooltipz.css is a pure CSS tooltip library that is lightweight, modern, accessible, customisable and easy to use

Downloads

1,682

Readme

Cooltipz.css

Pipeline

MIT License Brotli size

GitHub stars GitHub release (latest by date) npm jsDelivr hits (npm)


Cooltipz.css - Cool tooltips

Cool customisable tooltips made from pure CSS

Lightweight • Accessible • Customisable • Simple

Cooltipz.css is a pure CSS tooltip library that is lightweight, modern, accessible, customisable and easy to use.

Official documentation: cooltipz.jackdomleo.dev.

Play with Cooltipz.css on CodePen.

Features

  • Easy and simple tooltips with quick setup
  • Pure CSS, no JavaScript
  • Highly customisable
  • Accessible with aria-label attributes
  • Automatically disables animation if the user prefers reduced motion
  • Options to use classes or data- attributes
  • Options to import via CDN, npm or yarn
  • Options to import SCSS (npm & yarn only) or CSS stylesheets (expanded or minified)
  • Supports a wide range of characters and languages (including emojis, Font Awesome 4 and Font Awesome 5 icons)
  • Uses Autoprefixer when generating the CSS stylesheets and cssnano to minify the minfied stylesheet

Examples

Cooltipz.css examples


Usage

CDN

In the below CDN links:

  • Replace :version with a version listed here (latest version is always recommended). If you always want to get the latest stylesheet, remove @:version completely (Not recommended).
  • Replace :file with one of the below:
    • cooltipz.css (Expanded stylesheet)
    • cooltipz.min.css (Minfied stylesheet)
<!-- HTML -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cooltipz-css@:version/:file" />
/* Or CSS */
@import url('https://cdn.jsdelivr.net/npm/cooltipz-css@:version/:file');

Package manager (npm or yarn)

It's best practice to install Cooltipz.css as a dependency rather than a dev dependency. You can install cooltipz-css via npm or yarn.

First install via npm

npm install cooltipz-css --save

Or install via yarn

yarn add cooltipz-css

Then import into your JavaScript

import 'cooltipz-css';

Or use the SCSS or CSS into your Sass/SCSS In the below example, replace :file with one of the options below:

  • src/cooltipz (.scss file)
  • cooltipz.css (Expanded .css)
  • cooltipz.min.css (Minified .css)
/* Webpack */
@use '~cooltipz-css/:file' as *;

/* Non-webpack */
@use 'path/to/node_modules/cooltipz-css/:file' as *;

License

Type - MIT

Read license

You have the right to use this library in any project FREE of charge for personal and commercial use.

Commercial use should consider a small donation on Buy Me a Coffee.

You do not have the right to resell, sublicense or redistribute (even for free) this library.

Cooltipz.css is licensed under MIT. As a minimum, you are required to KEEP AND NOT REMOVE the following code at the beginning of your downloaded/installed Cooltipz.css CSS, where :version is replaced with the version number you are using:

/*! Cooltipz.css v:version | MIT License | github.com/jackdomleo7/Cooltipz.css */

Feedback and support

We appreciate any feedback, good or bad and are always looking for new ideas to improve the user experience (UX), developer experience (DX) and accessibility of the tooltips. You may want to consider:


Development

Setup

  • Fork this repository if required
  • git clone https://github.com/jackdomleo7/Cooltipz.css.git or clone your forked repository
  • cd Cooltipz.css
  • npm ci
  • npm run build to compile development SCSS to CSS

Branch

  • All branches should be prefixed with the issue number
  • All branches must have a descriptive name

GitHubnpmyarndocsCHANGELOGLicense