Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    tippublic

    tip

    NPM version Downloads Dependency Status

    Simple Tip plugin

    Installation

    npm i tip

    Usage

    online demo

    var Tip = require('tip')
     
    $(function() {
        var tip = Tip($('<div>tip</div>'))
        tip.attach('.target')
    })

    Support

    IE6+

    Api

    var tip = Tip(nodelist, options)

    Options

    • stay Boolean, if true then won't hide after mouseleave
    • offsetHook Function, change raw offset

    CSS

    Custom style by lessc

    import "tip/style.less";
     
    @tip-arrow-size: 7px; // arrow size 
    @tip-name: mytip; // class namespace, remember to change name in js also 

    License

    License

    Keywords

    none

    install

    npm i tip

    Downloadsweekly downloads

    14

    version

    1.1.4

    license

    ISC

    last publish

    collaborators

    • avatar