You can use more than once
<!-- Example Project of TextFlowJS made by Aswanth Vc -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
<title>Text Flow JS</title>
<!-- TextFlowJS StyleSheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/avc-tech/TextFlowJS@1.0.2/style.css">
<!-- Script for TextFlowJS -->
<script src="https://cdn.jsdelivr.net/gh/avc-tech/TextFlowJS@1.0.2/textWrap.js" type="text/javascript" charset="utf-8"></script>
<style>
body{
background: white;
color: black;
}a{
color: black;
font-family: Monospace;
text-decoration: none;
}
</style>
</head>
<body>
<!-- Creating elements and giving className "texter" for the elements which need that effect -->
<h1 class="texter">Hello everyone welcome to TextFlowJS by Aswanth V C. this is an example of the output of using TextFlowJS</h1>
<!-- You can use this effect for more than once -->
<p class="texter">You can use more than once</p>
<br/>
<!-- and it's easy to individually load additional languages -->
<script>hljs.highlightAll();</script>
<script>
// Wrap the first element
obj1 = avcWrapOne(0);
// Set styles
obj1.textColor = "#ff0000"; // Text Color
obj1.cursorColor = "#121212"; //Cursor COlor
obj1.cursorWidth = 7; //cursor width
obj1.cursorVisible = true; // if want the cursor to be visible or not
obj1.start(7000); // Start the animation and it would be completed in almost 7second (the time may warry because random is used)
avcWrapOne(1).start(2000); // start the animation for the second element (duration = 2seconds)
</script>
</body>
</html>
View More In GitHub