insert-html

0.0.1 • Public • Published

Insert HTML

Use a promise and requestAnimationFrame to insert HTML

Installation

  1. npm install insert-html

Usage

    var InsertHTML = require('insert-html');
    new InsertHTML('#selector', '<div>html</div>', 'html')
        .then(
            function(){
                // html was inserted
            }
        );

Readme

Keywords

none

Package Sidebar

Install

npm i insert-html

Weekly Downloads

47

Version

0.0.1

License

none

Last publish

Collaborators

  • dankantor