var element = document.querySelector('#element');
var el = document.querySelector('#el');
var ityped2 = Object.create(ityped);
var elConfig = {
// required - for now, only accepting texts
strings: ['And the other one is the same.', 'I have a general idea of what '],
//optional
typeSpeed: 55, //default
//optional
backSpeed: 30, //default
//optional
startDelay: 500, //default
//optional
backDelay: 500, //default
//optional
loop: false, //default
//optional
showCursor: true, //default
//optional
cursorChar: "|", //default
// optional callback called once the last string has been typed
onFinished: function(){}
};
ityped2.init(element,{
// required - for now, only accepting texts
strings: ['Dead simple animated typing.', 'No dependencies'],
//optional
typeSpeed: 55, //default
//optional
backSpeed: 30, //default
//optional
startDelay: 500, //default
//optional
backDelay: 500, //default
//optional
loop: false, //default
//optional
showCursor: true, //default
//optional
cursorChar: "|", //default
// optional callback called once the last string has been typed
onFinished: function(){
//ityped.init(el, elConfig);
}
});
setTimeout(ityped.init(el, elConfig), 500);
//ityped.init(el, elConfig);
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.