Skip to content

Commit acc6a9d

Browse files
revert changes to code strings and semi-colon
1 parent 21d8125 commit acc6a9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

7-animation/3-js-animation/text.view/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
E ficou um pouco em pensamento.
1616
</textarea>
1717

18-
<button onclick="animateText(textExample)">Execute a animação em texto!</button>
18+
<button onclick="animateText(textExample)">Run the animated typing!</button>
1919

2020
<script>
2121
function animateText(textArea) {
22-
let text = textArea.value
22+
let text = textArea.value;
2323
let to = text.length,
2424
from = 0;
2525

2626
animate({
2727
duration: 5000,
2828
timing: bounce,
29-
draw: function (progress) {
29+
draw: function(progress) {
3030
let result = (to - from) * progress + from;
3131
textArea.value = text.substr(0, Math.ceil(result))
3232
}
@@ -43,4 +43,4 @@
4343
</script>
4444
</body>
4545

46-
</html>
46+
</html>

0 commit comments

Comments
 (0)