1.0.1 • Published 9 years ago

daken v1.0.1

Weekly downloads
8
License
ISC
Repository
github
Last release
9 years ago

daken.js

Simple javascript library of typing effect.

Build Status NPM

example

  var daken = require('daken');
  daken.run();
  <h1 data-daken>Hello World</h1>
  <a href="/" data-daken>こんにちは、世界</a>

methods

run(selector, opt, cb)

runStr(typeMessage,selector, opt, cb)

setParam(options)

resetParam(options)

options

  // Defaults param
  DEFAULT_PARAM: {
    typeSpeed         : 100,
    callbackDelay     : 0,
    dakenDataAttr     : 'data-daken',
    blinkInterval     : 500
  },

install

npm install daken

license

MIT