New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tinytyper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinytyper

A tiny library for creating a typewriter effect on specified text element

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

⌨️ TinyTyper - a tiny library for creating a typing effect on specified text element.

JavaScript Style Guide Build Status Dependency Status

Demo

Size (It's really tiny)

  • Minimized: 2.9KB
  • Gziped: 1.1KB

Installation

Library can be easily installed via either NPM or Bower:

npm i tinytyper --save

OR

bower i tinytyper --save

Usage

Basic setup looks like this:

import TinyTyper from 'tinytyper';

const el       = document.querySelector('.text-el')
const options  = { /* . . . */ }
const instance = new TinyTyper(el, options)

In case you need to run animation again:

instance.animate()

Available options:

OptionDefaultDescription
textinnerText of specifed elementSets a text to be displayed
textSpeed95Defines of text speed animation
cursor ▌Defines current cursor symbol
blinkSpeed0.05Defines blink speed of a cursor
cursorClasstiny-typer-cursorA CSS class for cursor element
textClasstiny-typer-textA CSS class for text element
staticCursorfalseMakes cursor static (disables blinking)
staticTextfalseMakes text static (disables animation)

Contributions

Contributions are welcome. Feel free to create issues and PRs

Keywords

typing

FAQs

Package last updated on 05 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts