We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d8125 commit acc6a9dCopy full SHA for acc6a9d
7-animation/3-js-animation/text.view/index.html
@@ -15,18 +15,18 @@
15
E ficou um pouco em pensamento.
16
</textarea>
17
18
- <button onclick="animateText(textExample)">Execute a animação em texto!</button>
+ <button onclick="animateText(textExample)">Run the animated typing!</button>
19
20
<script>
21
function animateText(textArea) {
22
- let text = textArea.value
+ let text = textArea.value;
23
let to = text.length,
24
from = 0;
25
26
animate({
27
duration: 5000,
28
timing: bounce,
29
- draw: function (progress) {
+ draw: function(progress) {
30
let result = (to - from) * progress + from;
31
textArea.value = text.substr(0, Math.ceil(result))
32
}
@@ -43,4 +43,4 @@
43
</script>
44
</body>
45
46
-</html>
+</html>
0 commit comments