-
Notifications
You must be signed in to change notification settings - Fork 0
/
animation-time.html
47 lines (36 loc) · 1.12 KB
/
animation-time.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animações JS - Duração</title>
<link rel="stylesheet" href="node_modules/animate.css/animate.min.css">
</head>
<body>
<div id="transitions">
<h1>Hcode Treinamentos Animações</h1>
<!-- <transition
:duration="800"
enter-active-class="animate__animated animate__bounceIn"
leave-active-class="animate__animated animate__bounceOut"
> -->
<transition
:duration="{ enter: 800, leave: 1000 }"
enter-active-class="animate__animated animate__rollIn"
leave-active-class="animate__animated animate__zoomOut"
>
<h2 v-if="show">Djalma, bora gravar!</h2>
</transition>
<button @click="show = !show">Realizar animação</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
let app = new Vue({
el: '#transitions',
data: {
show: true
}
})
</script>
</body>
</html>