-
Notifications
You must be signed in to change notification settings - Fork 35
/
animations.css
73 lines (54 loc) · 1.02 KB
/
animations.css
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* animation-name
animation-duration
animation-delay
animation-timing-function
animation-iteration-count
animation-direction */
/* @keyframes block */
/* The changes can be specified in 2 ways:
- from & to blocks
- the steps */
.box {
width: 150px;
height: 150px;
border: 5px solid red;
/* transition: all 1s; */
animation-name: changes;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
}
/* .box:hover{
border-radius: 50%;
background-color: #000;
color: #fff;
padding: 30px;
} */
@keyframes changes{
from{
border-radius: 0;
background-color: #fff;
color: #000;
padding: 0;
}
to{
border-radius: 50%;
background-color: #000;
color: #fff;
padding: 30px;
/* filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.5)) */
}
/* 0%{}
25%{}
50%{}
75%{}
100%{} */
}
/* Playground
W3Schools
MDN */