UNPKG

@arthur-lobo/custom-tooltip

Version:

A css package to use custom tooltips on your site

34 lines (27 loc) 735 B
# custom-tooltip A CSS package to use custom tooltips on your site ## How to use * Install the package with `npm` or `yarn` You can import the package from your CSS like this: ```css @import url('path/to/node_modules/@arthur-lobo/custom-tooltip/dist/index.css'); /*Your css here*/ ``` You can also import directly into your HTML: ```html <html> <head> <link rel="stylesheet" href="path/to/node_modules/@arthur-lobo/custom-tooltip/dist/index.css" /> <!-- Your head content --> </head> <body> <div class="tooltip "> Hover me! <span class="tooltip-text"> Hello! </span> </div> <!-- Your body content --> </body> </html> ```