Repository navigation
Expand file tree
/
Copy pathtransition.css
More file actions
95 lines (82 loc) · 1.76 KB
/
Copy pathtransition.css
File metadata and controls
95 lines (82 loc) · 1.76 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
header{
background-color: orange;
text-align: center;
}
section{
width: 80%;
margin: 0 auto;
margin-top: 10px;
min-width: 70vh;
border: 2px solid grey;
padding: 20px;
display: grid;
justify-content: center;
}
.item {
width: 100px;
height: 100px;
background-color: red;
margin: 20px;
}
.item:first-child{
background-color: midnightblue;
color: white;
display: grid;
place-items: center ;
/*transform: translateX(-100px);*/
/*transform: rotateX(180deg);*/
/*transform: scaleX(150%);*/
transform: s;
}
.item:nth-child(2){
background-color: limegreen;
color: white;
display: grid;
place-content: center;
/*transform: rotateY(95deg);*/
/*transform: translateY(-230px);*/
/*transform: scaleY(150%);*/
}
.item:last-child{
display: grid;
place-content: center;
color: white;
/*transform: translate(50%-100px);*/
/*transform: rotate(45deg);*/
/*transform: scale(150%, 150%);*/
}
.item:hover{
background-color: blue;
transform: rotateZ(360deg);
transition-property: all;
transition-duration: 1.5s ;
transition-delay: o.3s;
transition-timing-function: ease-in-out ;
}
.item:last-child {
border-radius: 50%;
animation-name: bounce;
animation-duration: 3s;
animation-delay: o.5s;
animation-iteration-count: 4;
animation-timing-function: ease-in-out;
}
@keyframes bounce {
0%{
transform: translateY(0)
}
33% {
transform: -translateY(-100px);
}
66%{
transform: treanslateX (-100px)
}
100% {
transform: translateY (0)
}
}