Typewriters had been invented - animation
How do I make an typewriters had been invented - animation?
Typewriter effect for all the words at once. What is a typewriters had been invented - animation? How do you make a typewriters had been invented - animation? This script and codes were developed by Kunuk Nykjær on 23 September 2022, Friday.
Typewriters had been invented - animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Typewriters had been invented - animation</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="component"> <p class="typewriter js-typewriter"> Typewriters had been invented as early as 1714 by Henry Mill and reinvented in various forms throughout the 1800s. It was to be Sholes, however, who invented the first one to be commercially successful. </p> <button class="btn-replay" onclick="app.replay(event)">replay </button>
</div> <script src="js/index.js"></script>
</body>
</html>
Typewriters had been invented - animation - Script Codes CSS Codes
html { font-size: 20px;
}
@media (min-width: 600px) { html { font-size: 30px; }
}
body { margin: 0; font-family: Courier, Helvetica, sans-serif; background: #fafafa;
}
.component { padding: .5rem; text-align: center; margin: 0 auto; max-width: 1000px;
}
.component .typewriter { margin: .5rem; padding: 1rem .5rem; text-align: left; font-weight: 300;
}
.component .typewriter > span { display: inline-block;
}
.component .typewriter.animate > span > i { -webkit-animation: typewriter 300ms forwards, background 1000ms forwards; animation: typewriter 300ms forwards, background 1000ms forwards;
}
.component .typewriter > span > i { opacity: 0; color: #111; font-style: normal; font-size: 1em; min-width: .4em; border-radius: 2px;
}
.component .typewriter > span > i:nth-of-type(1) { -webkit-animation-delay: 100ms; animation-delay: 100ms;
}
.component .typewriter > span > i:nth-of-type(2) { -webkit-animation-delay: 200ms; animation-delay: 200ms;
}
.component .typewriter > span > i:nth-of-type(3) { -webkit-animation-delay: 300ms; animation-delay: 300ms;
}
.component .typewriter > span > i:nth-of-type(4) { -webkit-animation-delay: 400ms; animation-delay: 400ms;
}
.component .typewriter > span > i:nth-of-type(5) { -webkit-animation-delay: 500ms; animation-delay: 500ms;
}
.component .typewriter > span > i:nth-of-type(6) { -webkit-animation-delay: 600ms; animation-delay: 600ms;
}
.component .typewriter > span > i:nth-of-type(7) { -webkit-animation-delay: 700ms; animation-delay: 700ms;
}
.component .typewriter > span > i:nth-of-type(8) { -webkit-animation-delay: 800ms; animation-delay: 800ms;
}
.component .typewriter > span > i:nth-of-type(9) { -webkit-animation-delay: 900ms; animation-delay: 900ms;
}
.component .typewriter > span > i:nth-of-type(10) { -webkit-animation-delay: 1000ms; animation-delay: 1000ms;
}
.component .typewriter > span > i:nth-of-type(11) { -webkit-animation-delay: 1100ms; animation-delay: 1100ms;
}
.component .typewriter > span > i:nth-of-type(12) { -webkit-animation-delay: 1200ms; animation-delay: 1200ms;
}
.component .typewriter > span > i:nth-of-type(13) { -webkit-animation-delay: 1300ms; animation-delay: 1300ms;
}
.component .typewriter > span > i:nth-of-type(14) { -webkit-animation-delay: 1400ms; animation-delay: 1400ms;
}
.component .typewriter > span > i:nth-of-type(15) { -webkit-animation-delay: 1500ms; animation-delay: 1500ms;
}
.component .typewriter > span > i:nth-of-type(16) { -webkit-animation-delay: 1600ms; animation-delay: 1600ms;
}
.component .typewriter > span > i:nth-of-type(17) { -webkit-animation-delay: 1700ms; animation-delay: 1700ms;
}
.component .typewriter > span > i:nth-of-type(18) { -webkit-animation-delay: 1800ms; animation-delay: 1800ms;
}
.component .typewriter > span > i:nth-of-type(19) { -webkit-animation-delay: 1900ms; animation-delay: 1900ms;
}
.component .typewriter > span > i:nth-of-type(20) { -webkit-animation-delay: 2000ms; animation-delay: 2000ms;
}
.component .typewriter > span > i:nth-of-type(21) { -webkit-animation-delay: 2100ms; animation-delay: 2100ms;
}
.component .typewriter > span > i:nth-of-type(22) { -webkit-animation-delay: 2200ms; animation-delay: 2200ms;
}
.component .typewriter > span > i:nth-of-type(23) { -webkit-animation-delay: 2300ms; animation-delay: 2300ms;
}
.component .typewriter > span > i:nth-of-type(24) { -webkit-animation-delay: 2400ms; animation-delay: 2400ms;
}
.component .typewriter > span > i:nth-of-type(25) { -webkit-animation-delay: 2500ms; animation-delay: 2500ms;
}
.component .typewriter > span > i:nth-of-type(26) { -webkit-animation-delay: 2600ms; animation-delay: 2600ms;
}
.component .typewriter > span > i:nth-of-type(27) { -webkit-animation-delay: 2700ms; animation-delay: 2700ms;
}
.component .typewriter > span > i:nth-of-type(28) { -webkit-animation-delay: 2800ms; animation-delay: 2800ms;
}
.component .typewriter > span > i:nth-of-type(29) { -webkit-animation-delay: 2900ms; animation-delay: 2900ms;
}
.component .typewriter > span > i:nth-of-type(30) { -webkit-animation-delay: 3000ms; animation-delay: 3000ms;
}
.component .btn-replay { padding: .5rem; background: white; border: 0; box-shadow: 1px 1px 2px #777; text-transform: uppercase; cursor: pointer;
}
@-webkit-keyframes typewriter { 50% { -webkit-transform: scale(1.4); transform: scale(1.4); } 100% { opacity: 1; }
}
@keyframes typewriter { 50% { -webkit-transform: scale(1.4); transform: scale(1.4); } 100% { opacity: 1; }
}
@-webkit-keyframes background { 0% { background: rgba(17, 17, 17, 0.1); }
}
@keyframes background { 0% { background: rgba(17, 17, 17, 0.1); }
}
Typewriters had been invented - animation - Script Codes JS Codes
'use strict';
window.app = function (_) { var log = console.log.bind(console), messageElement = document.querySelector('.js-typewriter'), text = messageElement.innerText.trim(); var words = text.split(' '); var work = []; words.forEach(function (word) { var splitWord = word.split('').map(function (char, index) { return '<i>' + char + '</i>'; }).join(''); work.push(splitWord); }); var formattedWords = work.map(function (word, index) { return '<span>' + word + '</span>'; }).join(' '); messageElement.innerHTML = formattedWords; messageElement.classList.add('animate'); return { replay: function replay(event) { messageElement.classList.remove('animate'); messageElement.offsetHeight; // force reflow setTimeout(function (_) { messageElement.classList.add('animate'); }); } };
}();
Developer | Kunuk Nykjær |
Username | kunukn |
Uploaded | September 23, 2022 |
Rating | 4 |
Size | 4,130 Kb |
Views | 62,744 |
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 |
Some math dances | 9,729 Kb |
Rotating Gyroscope Cube | 5,875 Kb |
Signature_Pad throttle version | 15,715 Kb |
The building blocks | 7,630 Kb |
CubeOne | 10,407 Kb |
Responsive SVG hexagon list with circle image | 5,100 Kb |
Clippy.js demo | 3,408 Kb |
Hello world split text animation | 4,548 Kb |
Angular material design getting started | 2,699 Kb |
Day 090 - Equalizer - version 1 | 9,873 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 |
Lightrays v2 | Sinthetyc | 2,903 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 Kb |
STIKHOI | Denmch | 7,122 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
3d css cube | Semenchenko | 4,578 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
A Pen by Jess | Jessamyne | 5,100 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!