data-original-width="1920" src="https://i.ytimg.com/vi/o1ue7i0SsYU/maxresdefault.jpg" />

In this video tutorial, you will learn to create Multiple Typing Text Animations using HTML CSS, and JavaScript. Actually, text changes automatically with beautiful animation.


Please subscribe our channel and support me.
Please like and 1 comment this video.


If you are visiting my channel for the first time then please subscribe
Go to my Youtube channel : class="simple-endpoint" dir="auto" href="https://www.youtube.com/channel/UCP43UNTq7UZD1cu_qTbmC9A"
spellcheck="false">https://www.youtube.com






Html Code



<div class="container">
<h2 class="title">Welcome to CodeWithAr</h2>
<h4> Learn
<span class="typewrite"></span>
<span class="typed-cursor">|</span>
</h4>
</div>




Css Code



body {
font-family: sans-serif;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 95vh;background: #fff !important; transform: scale(1) !important;
}

@keyframes name {
0% {
opacity: 0;
}

100% {
opacity: 1;
}
}

.container {
width: 400px;
height: auto;
margin: 0 auto;
}

.typewrite,
.typed-cursor {
color: #f00;
}

.typed-cursor[type="false"] {
animation: name 0.7s infinite;
transition: all 0.3s;
}




Js Code



var TextType = function (el, toRotate, period, typed) {
this.toRotate = toRotate;
this.el = el;
this.typed = typed;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.text = "";
this.type();
this.isDeleting = false;
}

TextType.prototype.type = function () {
var i = this.loopNum % this.toRotate.length;
var fullText = this.toRotate[i];
if (this.isDeleting) {
this.text = fullText.substring(0, this.text.length - 1);
}
else {
this.text = fullText.substring(0, this.text.length + 1);
}

this.el.innerHTML = this.text;
this.typed.setAttribute("type", true);
var that = this, delta = 100 - Math.random() * 100;

if (this.isDeleting) {
delta /= 2;
}
if (!this.isDeleting && this.text === fullText) {
delta = this.period;
this.isDeleting = true;
this.typed.setAttribute("type", false);
}
else if (this.isDeleting && this.text === "") {
this.typed.setAttribute("type", false);
this.isDeleting = false;
this.loopNum++;
delta = 500;
}

setTimeout(function () {
that.type();
}, delta)
}



var toRotate = ["Web Development", "C Programming", "Machine Learning", "Python", "Php", "C++"];
var element = document.querySelector(".typewrite");
var typed = document.querySelector(".typed-cursor");
var period = 2000;

new TextType(element, toRotate, period, typed);





@ Recommendations Videos


blogger theme design : spellcheck="false">https://youtu.be/DAIJTjRzxLk


Login Form : spellcheck="false">https://youtu.be/HWbAr1XN3Lc


Forms design : spellcheck="false">https://youtu.be/M2ERkDXjEuw


Responsive CSS card : spellcheck="false">https://youtu.be/Ol9_5cYtAaw


Navigation design : spellcheck="false">https://youtu.be/LNEgZBdWPGM



Disclaimer video is for educational purpose only. Copyright Disclaimer Under Section 107 of the Copyright Act 1976,
allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and
research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational
or personal use tips the balance in favor of fair use .


Thanks..