html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"
/>
</head>
<body>
<h1 id="text" style="text-align:center; color:purple">Animate.css</h1>
<button onclick="triggerAnimate('animate__animated animate__zoomIn')">Trigger animate zoom out effect</button>
<script>
function triggerAnimate() {
var text = document.getElementById('text');
text.className = "";
setTimeout(function() {
text.className = "animate__animated animate__zoomIn";
}, 50);
}
</script>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run