This package has been deprecated

Author message:

this package is never useful

jquery.typein
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

jquery.typein

A JQuery plugin that displays typing effect of an HTMLElement.

Install

npm install jquery.typein --save

Import

HTML

<script src="jquery.js"></script>
<script src="jquery.typein.js"></script>

CommonJS/Webpack

const $ = require("jquery");
require("jquery.typein");

Example

$("#pre1").typeIn();

$("#pre2").typeIn("fast", ($this) => {
    $this.css("color", "red");
});

$("#pre3").typeIn(100, "|", ($this) => { // cousor: |
    // ...
});

API

  • $.fn.typeIn(speed?: string | number, callback?: ($this: JQuery<HTMLElement>) => void): JQuery<HTMLElement>
  • $.fn.typeIn(speed?: string | number, cursor?: string, callback?: ($this: JQuery<HTMLElement>) => void): JQuery<HTMLElement>

Readme

Keywords

Package Sidebar

Install

npm i jquery.typein

Weekly Downloads

7

Version

0.1.0

License

MIT

Unpacked Size

8.69 kB

Total Files

7

Last publish

Collaborators

  • ayonli