-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransition.css
More file actions
88 lines (80 loc) · 2.09 KB
/
Copy pathtransition.css
File metadata and controls
88 lines (80 loc) · 2.09 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
#linear{
width: 300px;
height: 250px;
border: 1px solid #000;
border-radius: 10px;
padding: 10px;
text-align: justify;
transition: width 1s, height 1s, color 1s, background-color 1s transform 1s; /*transição de elemento*/
transition-timing-function: linear; /*tempo de transição do inicio ao fim*/
}
#linear:hover{
width: 500px;
height: 120px;
background-color: #f00;
color: #fff;
}
#ease-in{
width: 300px;
height: 250px;
border: 1px solid #000;
border-radius: 10px;
padding: 10px;
text-align: justify;
transition: width 1s, height 1s, color 1s, background-color 1s; /*transição de elemento*/
transition-timing-function: ease-in; /*começa devagar e termina rapido*/
}
#ease-in:hover{
width: 500px;
height: 120px;
background-color: #f00;
color: #fff;
}
#ease-out{
width: 300px;
height: 250px;
border: 1px solid #000;
border-radius: 10px;
padding: 10px;
text-align: justify;
transition: width 1s, height 1s, color 1s, background-color 1s; /*transição de elemento*/
transition-timing-function: ease-out; /*começa rapido e termina devagar*/
}
#ease-out:hover{
width: 500px;
height: 120px;
background-color: #f00;
color: #fff;
}
#cubic-bezier{
width: 300px;
height: 250px;
border: 1px solid #000;
border-radius: 10px;
padding: 10px;
text-align: justify;
transition: width 1s, height 1s, color 1s, background-color 1s; /*transição de elemento*/
transition-timing-function: cubic-bezier(0.5,0,0.5,1); /*(x,y,x,y)*/
}
#cubic-bezier:hover{
width: 500px;
height: 120px;
background-color: #f00;
color: #fff;
}
#transition-delay{
width: 300px;
height: 250px;
border: 1px solid #000;
border-radius: 10px;
padding: 10px;
text-align: justify;
transition: color 1s, background-color 1s, transform 1s; /*transição de elemento*/
transition-timing-function: linear;
transition-delay: 0s; /* atraso */
}
#transition-delay:hover{
background-color: #f00;
color: #fff;
transform: rotate(180deg);
}