-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransitions.css
46 lines (39 loc) · 1014 Bytes
/
transitions.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
#square2circle div {
width: 200px;
height: 200px;
background-color: #006466;
border: 2px solid black;
display: inline-block;
margin: 10px;
}
#square2circle div:nth-of-type(1):hover {
border-radius: 50%;
background-color: #4d194d;
transition: background-color 1s, border-radius 1s;
/*[type duration timing-function delay], [...]*/
}
#square2circle div:nth-of-type(2):hover {
border-radius: 50%;
background-color: #4d194d;
transition: background-color 1s 0.5s, border-radius 0.5s;
}
#timing-function div {
width: 100px;
height: 100px;
background-color: #edae49;
border: 2px solid black;
margin: 10px;
transition: margin-left 1s;
}
#timing-function:hover div {
margin-left: 500px;
}
#timing-function div:nth-of-type(1) {
transition-timing-function: ease-in;
}
#timing-function div:nth-of-type(2) {
transition-timing-function: ease-out;
}
#timing-function div:nth-of-type(2) {
transition-timing-function: ease-in-out;
}