type-writer-xs
v1.1.10
Published
angular type writer
Downloads
12
Maintainers
Readme
Installation
npm i type-writer-xs
Example usage
import { TypeWriterXsComponent } from 'type-writer-xs';
@Component({
selector: 'your-component',
template: `
<div class="whitespace"></div>
`,
styles: []
})
export default function InsideYourComponent() {
//TypeWriterXsComponent -> (HTMLElement, loop = false (default), typeSpeed = 50 (default), DeleteSpeed = 50 (default))
//Note All speeds in milliseconds.
const writer = new TypeWriterXsComponent(document.querySelector(".whitespace") as HTMLDivElement ,true, 130, 150);
writer.typeString('hello there').typeString(' its type writer ').typeString(' Made by XeNDeR ').pauseFor(2000).deleteUpto(12).typeString(' visit : www.ixender.com').deleteAll().typeString('Bye').deleteAll().start();
}