Letting.js Demo using vanilla js.
How do I make an letting.js demo using vanilla js.?
What is a letting.js demo using vanilla js.? How do you make a letting.js demo using vanilla js.? This script and codes were developed by James Nowland on 31 October 2022, Monday.
Letting.js Demo using vanilla js. - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Letting.js Demo using vanilla js.</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1 id="blog-title">Hello this has multiple words</h1> <script src="js/index.js"></script>
</body>
</html>
Letting.js Demo using vanilla js. - Script Codes CSS Codes
.word1 .char1 { color: blue;
}
.word2 { color: green;
}
Letting.js Demo using vanilla js. - Script Codes JS Codes
(function () { function e(e, t, n, r) { if (typeof e.textContent != "undefined") { var i = e.textContent } else { var i = e.innerText } var i = i.split(t), s = ""; if (i.length) { for (var o = 0, u = i.length; item = i[o], o < u; o++) { s += '<span class="' + n + (o + 1) + '">' + item + "</span>" + r } e.innerHTML = s } } var t = { init: function (t) { for (var n = t.length - 1; n >= 0; --n) { e(t[n], "", "char", "") } }, words: function (t) { for (var n = t.length - 1; n >= 0; --n) { e(t[n], " ", "word", " ") } }, lines: function (t) { for (var n = t.length - 1; n >= 0; --n) { var r = "eefec303079ad17405c889e092e105b0"; t[n].innerHTML = t[n].innerHTML.replace(/<br\s*[\/]?>/gi, r); e(t[n], r, "line", "") } } }; lettering = function (e, n) { if (e == null) { return } if (typeof e.length == "undefined") { e = [e] } if (n && t[n]) { t[n](e) } else if (n === "letters" || !n) { t.init(e) } }
})()
//lettering(document.getElementById('blog-title'));
var adv1 = document.getElementById("blog-title");
lettering(adv1, 'words');
lettering(adv1.getElementsByTagName('span'));
Developer | James Nowland |
Username | jnowland |
Uploaded | October 31, 2022 |
Rating | 3 |
Size | 2,298 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
SVG Modified with Query String | 1,663 Kb |
Login Form CSS only validation | 5,739 Kb |
Pure CSS Spinner | 3,909 Kb |
Animating Scale with text featuring blurry raster DPI issues | 2,983 Kb |
Step 3 | 3,874 Kb |
Smart Ratio CSS Photo Grid | 3,200 Kb |
Three Heading Solutions | 11,415 Kb |
Lorem pixel Images | 2,290 Kb |
Hamburger and Search CSS Animations | 4,173 Kb |
Download Rebound | 10,865 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Reading Grid | Tappily | 4,306 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
3D Text in Sass | Bookcasey | 2,766 Kb |
Website Concept | Sagoza | 3,104 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Price table | Serluk | 5,928 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!