neotip

a simple tooltip script
by dug alcedo

how to use

<script src="https://dugalcedo.neocities.org/neotip/neotip.js"></script>
    <!-- script defaults and global style can go in the script tags below -->
    <script>
        // store each default class as a string, e.g. '-square', '-colorRed'
        tip.defaults = [];
        // css code to be applied to all tooltips
        tip.globalStyle = '';
    </script>
npm i neotip

import tip from 'neotip'
window.addEventListener('DOMContentLoaded', tip.run)
<span>
    i'm the parent. hover me to show the tooltip
    <span class="-tip">
        i'm the tooltip
    </span>
</span>
i'm the parent. hover me to show the tooltip i'm the tooltip