-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-animation.html
55 lines (52 loc) · 1.29 KB
/
css-animation.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
<!DOCTYPE html>
<html>
<head>
<title>Css Animation</title>
<style type="text/css">
.card{
width: 300px;
height: 300px;
position: absolute;
top: 50%;
left: 50%;
line-height: 300px;
margin:-150px;
background: white;
color: #03446A;
font-size: 40px;
text-align: center;
border:1px solid red;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
/*animation-name: exampleAnimation;*/
/*animation-duration: 3s;*/
/*animation-iteration-count: infinite;*/
/*animation-direction: normal;*/
/*animation-direction: reverse;*/
/*animation-direction: alternate;*/
/*animation-direction: alternate-reverse;*/
/*animation-delay: 2s;*/
/*animation-timing-function: ease;*/
/*steps(6) */
animation: exampleAnimation 3s cubic-bezier(.27,1.34,.97,-0.08) infinite alternate-reverse ;
}
/*declared */
/*@keyframes exampleAnimation {
from{border-radius: 0%;}
to{border-radius: 50%;}
}*/
@keyframes exampleAnimation {
0%{border-radius: 0%;background: red;}
50%{border-radius: 25%;border:5px solid orange;background: yellow;}
100%{border-radius: 50%;background: green;}
}
.card:hover{
animation-play-state: paused;
}
</style>
</head>
<body>
<div class="card">
Web Dev
</div>
</body>
</html>