Skip to content

nandotess/jQuery-Typer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Plugin: jQuery Typer

Example

https://jquery-typer-js.nandotess.com/example/example.html

Install NPM

https://nodejs.org/en/

Install NPM modules

npm install

This will run the package.json file and download the list of modules to a "node_modules" folder in the template.

Install Bower modules

bower install

This will run the bower.json file and download the list of modules to a "bower_components" folder in the template.

Gulp Commands

gulp deploy

This will deploy all files inside "dist" folder in the template.

gulp server

This will deploy all files inside "dist" folder in the template, run server localhost and watch changes in "app" folder.

Usage

$('[data-typer-targets]').typer();

That code will start the effect on all elements with the data-typer-targets attribute.

You obviously need to supply it with some source data. The data-typer-targets attribute can be either a comma-separated string or a piece of JSON.

Options

There are some options that are available to you as well:

// Defaults
{
  highlightSpeed: 20, // ms
  typeSpeed: 100, // ms
  clearDelay: 500, // ms
  typeDelay: 200, // ms
  typerInterval: 2000, // ms
  highlightEverything: true, // true/false
  typerDataAttr: 'data-typer-targets',
  backgroundColor: 'auto', // CSS background-color
  highlightColor: 'auto', // CSS color
  typerOrder: 'sequential' // sequential/random
}

About

jQuery Plugin: jQuery Typer for a slick typing effect

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 87.2%
  • HTML 12.8%