-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice_08.css
72 lines (68 loc) · 1.6 KB
/
practice_08.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
/* div{
height: 100px;
width: 100px;
background-color: black;
color: white;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 100px;
left: 100px;
} */
/* div:hover { */
/* background-color: white; */
/* after move the corser to the div point color will change */
/* transition-duration: 2s;
transition-timing-function: steps(5);
transition-delay: 0.5s; */
/* transition: all 2s ease-in 0.5s;
transform: rotate(90deg); */
/* } */
/* div:active { */
/* background-color: pink; */
/* after clicking color will be change */
/* } */
.hello {
background-color: black;
color: white;
height: 100px;
width: 100px;
display: flex;
align-items: center;
justify-content: center;
}
/* .hello:hover {
background-color: white;
transition-duration: 5s;
transition-delay: 0.25s;
transform: translate(100px,50px);
transform: skew(90deg);
} */
/* @keyframes colorAnimation {
from {
background-color: black;
}
to {
background-color: white;
}
} */
@keyframes colorAnimation {
0%{
background-color: black;
}
50% {
background-color: white;
}
100% {
background-color: black;
}
}
.hello:hover {
/* animation-name: colorAnimation;
animation-duration: 2s;
animation-timing-function: ease-in;
animation-iteration-count: 5;
animation-direction: reverse; */
animation: colorAnimation 2s ease-in 0.25s infinite normal ;
}