JQuery - Animated Typing Effect Using Typed Js Example

Jquery

Nicesnippets

345

13-04-2021


JQuery - Animated Typing Effect Using Typed Js Example

Hello Friends,

Now let's see example of how to make typing text effect using jquery plugin in our website. We will talk about jquery animated typing effect using typed js. If you want to require to give animated typing effect like typewriter with string for good layout and best gui effect. So, you can also do it using code jquery, But if you use jquery plugin then you can make best and without time wast. So, You can create typing text effect using

Typed.js plugin give us several option to customize you typing effect like typing speed, loop etc. Using this plugin we make best animation effect for our website. In this post i give you full example and very simple that way you can understand.


If you want to use typed js plugin then we require two js as listed bellow:

1) jquery.min.js

2) typed.min.js

Ok then we can simply use typed plugin like as bellow given example code:

$(function(){

$(".write").typed({

strings: ["Welcome to ItSolutionStuff.com!"],

});

});

In above code i use simple typed function and give array as argument, in array argument i just pass "strings" parameter that way given string will be a typing effect.

You can also pass several other option key in array for customize you typing effect like as bellow listed:

strings

stringsElement

typeSpeed

startDelay

backSpeed

shuffle

backDelay

loop

loopCount

showCursor

cursorChar

attr

contentType

callback

preStringTyped

onStringTyped

resetCallback

Ok, I am going to give you basic example source code that way you can simple run, so let's use bellow full example of typed js code:

Example

<!DOCTYPE html>

<html>

<head>

<title>Animated typing effect using typed js - NiceSnippets.com</title>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

<script type="text/javascript" src="https://cdn.bootcss.com/typed.js/1.1.4/typed.min.js"></script>

<style type="text/css">

.write{

font-size: 22px;

}

.container{

text-align: center;

}

</style>

</head>

<body>

<div class="container">

<span class="write"></span>

</div>

<script type="text/javascript">

$(function(){

$(".write").typed({

strings: ["Welcome to NiceSnippets.com!", "Thanks for visit"],

typeSpeed: 1,

});

});

</script>

</body>

</html>

It will help you....


Recommended Posts