-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsm_animation2.html
56 lines (45 loc) · 986 Bytes
/
sm_animation2.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
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100%;
height: 100px;
background-color: orange;
margin: 0 auto 20px auto;
border: 2px solid black;
box-sizing: border-box;
}
.d1,
.d2,
.d3 {
animation-name: taille;
animation-duration: 3s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.d2:hover {
animation-play-state: paused;
}
.d3:active {
animation-play-state: paused;
}
@keyframes taille {
from {
width: 100%;
}
50% {
width: 50%;
}
to {
width: 100%;
}
}
</style>
</head>
<body>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
</body>
</html>