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

@sn8z/pop-pop.css

v1.0.2

Published

A pure CSS tooltip library

Downloads

253

Readme

Pop-Pop.css

npm npm bundle size npm GitHub license

A pure CSS tooltip library with no dependencies and support for CSS custom properties.

Demo

Pop-Pop.css website

Features

  • No dependencies
  • Pure CSS
  • ~ 14kb minified (~ 1,3kb when minified & Gzipped)
  • Customizable
  • Supports CSS custom properties
  • Supports multiple browsers

Installation & Basic usage

NPM / Yarn

npm install @sn8z/pop-pop.css
yarn add @sn8z/pop-pop.css

You can then import the normal CSS file or the minified version from the dist folder in the package.

@import "node_modules/@sn8z/pop-pop.css/dist/pop-pop.min.css";

or

<link rel="stylesheet" href="node_modules/@sn8z/pop-pop.css/dist/pop-pop.min.css">

CDN

You can import the CSS from unpkg.

<link rel="stylesheet" href="https://unpkg.com/@sn8z/pop-pop.css@latest/dist/pop-pop.min.css">

Download

You can also download the CSS from GitHub and include it to your html as you would normally do.

<link rel="stylesheet" href="pop-pop.min.css">

Usage

To add a tooltip simply add the attribute data-pop and an aria-label to the tag where you want it to appear.

<div data-pop aria-label="Tooltip text goes here">...</div>

For more examples and configuration check out the website.

Contribute

If you want to contribute with enhancements and/or bugfixes:

  • Fork and/or clone the repo
git clone https://github.com/Sn8z/pop-pop.css.git
  • Enter the directory
cd pop-pop.css
  • Run
npm install
  • Edit pop-pop.scss in the src folder.
  • Run the following command to generate the minified and normal CSS file.
npm run build:all
  • Open the index.html file found in the docs folder to confirm things are working as expected.
  • If everything works as expected open a Pull request with a brief explanation!

Sponsor

If you enjoy using Pop-Pop.css consider supporting me here on GitHub by becoming a sponsor!

Made by @Sn8z