large-tooltip

0.0.3 • Public • Published

large-tooltip

Create a selectable large tooltip on the web page

Installation

In HTML:

<script src="https://cdn.jsdelivr.net/npm/large-tooltip@0.0.3/index.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/large-tooltip@0.0.3/index.min.css" />

Or if you are using Node.js:

npm install --save large-tooltip
import LargeTooltip from "large-tooltip";

Usage

<p id="hoverMe">Hover me!</p>
const largeTooltip = LargeTooltip.init();
const hoverMe = document.getElementById("hoverMe");
const p = document.createElement("p");
p.innerText = "This is the text in the tooltip!";
largeTooltip.addTooltip(p, hoverMe); // add `p` as a tooltip of `hoverMe`

Readme

Keywords

Package Sidebar

Install

npm i large-tooltip

Weekly Downloads

1

Version

0.0.3

License

BSD-2-Clause

Unpacked Size

6.43 kB

Total Files

6

Last publish

Collaborators

  • ayaka14732