All Projects → eddiewentw → TypeWriting.js

eddiewentw / TypeWriting.js

Licence: MIT license
javascript library: make the typewriter effect.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to TypeWriting.js

open-display-transform
Open Display Transform is a collection of tools and experiments for rendering wide-gamut scene-linear data into an image for an SDR or HDR display device.
Stars: ✭ 120 (+192.68%)
Mutual labels:  blink
typed.css
A fully functional and flexible typewriter mixin for SCSS, with Less and Stylus support coming soon! Typed.css supports multiple strings, multi-line strings, variable speeds, per-string styling, animated caret (blinking insertion cursor), directional type-pausing, and much more. It's even accessible! ✨
Stars: ✭ 113 (+175.61%)
Mutual labels:  typewriter
preact-component-console
A console emulator for preact.
Stars: ✭ 29 (-29.27%)
Mutual labels:  typewriter
Kaio-machine-learning-human-face-detection
Machine Learning project a case study focused on the interaction with digital characters, using a character called "Kaio", which, based on the automatic detection of facial expressions and classification of emotions, interacts with humans by classifying emotions and imitating expressions
Stars: ✭ 18 (-56.1%)
Mutual labels:  blink
Miniblink49
a lighter, faster browser kernel of blink to integrate HTML UI in your app. 一个小巧、轻量的浏览器内核,用来取代wke和libcef
Stars: ✭ 5,408 (+13090.24%)
Mutual labels:  blink
react-typewriter-js
Simple vanilla JS script to simulate text typewriting effect.
Stars: ✭ 18 (-56.1%)
Mutual labels:  typewriter
R-CNN LIGHT
Regional-Convolution Neural Network for blink detection based on contouring.
Stars: ✭ 66 (+60.98%)
Mutual labels:  blink
autotyperjs
A vanilla javascript plugin for animated typewriting
Stars: ✭ 12 (-70.73%)
Mutual labels:  typewriter
react-native-speech-bubble
💬 A speech bubble dialog component for React Native.
Stars: ✭ 50 (+21.95%)
Mutual labels:  typewriter
TypeLighterJS-Typewriter
Take a stride into the world of dynamic and appealing typewriters. You can be sure that you will never even think of looking back.
Stars: ✭ 266 (+548.78%)
Mutual labels:  typewriter
urlbox-screenshots-node
Capture website thumbnails using the urlbox.io screenshot as a service API in node
Stars: ✭ 14 (-65.85%)
Mutual labels:  blink
Wpt
Test suites for Web platform specs — including WHATWG, W3C, and others
Stars: ✭ 3,573 (+8614.63%)
Mutual labels:  blink
amiri-typewriter
Mono-width companion to Amiri font family
Stars: ✭ 23 (-43.9%)
Mutual labels:  typewriter
hyper-blink
Let Hyper's cursor blink.
Stars: ✭ 46 (+12.2%)
Mutual labels:  blink
kobowriter
A simple typewriter written in go for KOBO e-readers
Stars: ✭ 250 (+509.76%)
Mutual labels:  typewriter
nuke-colortools
A collection of tools for Nuke related to color science and the Academy Color Encoding System (ACES).
Stars: ✭ 66 (+60.98%)
Mutual labels:  blink
use-typewriter
useTypewriter
Stars: ✭ 43 (+4.88%)
Mutual labels:  typewriter
Typeit
The most versatile JavaScript typewriter effect library on the planet.
Stars: ✭ 2,406 (+5768.29%)
Mutual labels:  typewriter
Typer.js
Typing effect completely configurable in HTML.
Stars: ✭ 111 (+170.73%)
Mutual labels:  typewriter
IHTypeWriterLabel
No description or website provided.
Stars: ✭ 24 (-41.46%)
Mutual labels:  typewriter

TypeWriting.js

npm version

https://unsplash.com/photos/E0Spm6XXn2Y

If you want to make the typing effect, this is what you need.

TypeWriting DEMO

Note: TypeWriting.js doesn't depend on jQuery since version 1.2. If you want to keep the old version, please check another branch - jQuery-v1.1.3.


Installation

Just clone or download the zip of this repository

or via npm:

$ yarn add typewriting

# $ npm install --save typewriting

Setup

<!-- just typewriting.js or .min.js -->
<script src='path/to/typewriting.min.js'></script>

or

// import in your .js file
import TypeWriting from 'typewriting';

TypeWriting()

  • targetElement: HTML element required
    Your element
  • inputString: String required
    Your text
  • typingInterval: Int
    Interval between each character
  • blinkInterval: String
    Interval of the cursor blinks
  • cursorColor: String
    Color of the cursor

I use the height of targetElement to set the cursor height. You could use its line-height to control cursor height.

Second parameter is the function after typing effect.

const typeWriting = new TypeWriting({
	targetElement   : document.getElementsByClassName('terminal')[0],
	inputString     : 'Hello, world.',
	typingInterval  : 130,
	blinkInterval   : '1s',
	cursorColor     : '#00fd55',
}, () => console.log('END'));

rewrite()

You could use this function to do the same effect but different text at same element.

typeWriting.rewrite('Welcome to TypeWriting.js', () => {
	console.log('Rewrite() is finished');
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].