Search
 
SCRIPT & CODE EXAMPLE
 

CSS

javascript typewriter effect

// this function performs a typewriter effect on an element from the HTML DOM
function TypeWriter(target, text, delay, clearText = false) {
	if (target.textContent === text) {
		return;
	}
	if (clearText) {
		target.textContent = "";
	}
	let _delay = 0;
	for (let i = 0; i < text.length; i++) {
		_delay += delay;
		window.setTimeout(function() {
			target.textContent += text[i];
		}, _delay);
	}
}
Comment

PREVIOUS NEXT
Code Example
Css :: flex grow css 
Css :: emotion select all childrens 
Css :: Réglage de constantes PHP 
Css :: @keyframes opact 
Css :: css convert td to tr 
Css :: ul change position when restore down 
Css :: Responsive testimonial slider HTML CSS 
Css :: lier class et css 
Css :: enable gutenberg for post 
Css :: css infinite horizontal scroll with keyframe? 
Css :: revert workflow version servicenow 
Css :: bast css 3d images gallery code 
Css :: media screen use another css file 
Css :: bootstrap quebra de linha na tabela 
Css :: purpose 
Css :: Définir le nombre minimum de mots sur les publications WordPress 
Css :: The HSL color model css 
Css :: vue center components in body 
Css :: textxarea noresize 
Css :: como fazer listrada css 
Css :: css grid media queries 
Css :: tailwind no wrap 
Css :: css grepper 001 
Css :: verified icon css 
Css :: foreach and if condition in qweb 
Css :: tslib.es6 
Css :: tailwind css border radius 
Css :: best os for programming 
Css :: horizontal dotted progress library 
Typescript :: rails precompile assets production 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =