Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typewriting

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typewriting

TypeWriting.js is a jQuery plugin to make a typewriter effect.

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

TypeWriting.js

GitHub repo

DEMO


Setup

<!-- jQuery -->
<script type="text/javascript" src="jquery.min.js"></script>
<!-- just typewriting.js or .min.js -->
<script type="text/javascript" src="path/to/typewriting.min.js"></script>

I use $('.string').height to set the cursor height. You could use its line-height to control cursor height.


typewriting()

Put the text you want as first parameter.
With second parameter, you can set some options.

  • typing_interval: the interval between each character
  • blink_interval: the interval of the cursor blinks
  • cursor_color: the color of the cursor

Third parameter is the function after typing effect.

$('.string').typewriting( "Text here", {
	"typing_interval": 300,
	"blink_interval": "1.5s"
	"cursor_color": "white"
}, function() {
	console.log( "End." );
});

rewrite()

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

$('.string').rewrite( "Another text here", function() {
	console.log( "End, 2." );
});

Author

Eddie Wen: m20021991y@gmail.com
GitHub: https://github.com/EddieWen-Taiwan

Keywords

FAQs

Package last updated on 28 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc