-
Notifications
You must be signed in to change notification settings - Fork 2
/
animations.css
107 lines (89 loc) · 2.83 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* ************************************************************* */
/*
/* Use this file to add custom CSS animations.
/* Delete this file if you wish to use the default animations.
/* If you do not want to have animations in your theme,
/* remove or comment them and include this file in your theme.
/*
/* ************************************************************* */
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Entrance animations
- Button hover animations
- Icon hover animations
- Footer hover animations
*/
/* Entrance animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button-entrance {
animation-name: popUp;
animation-duration: 1s;
animation-fill-mode: both;
/* Used to start button entrance animation one after another */
animation-delay: calc(var(--delay)/10);
}
@keyframes popUp {
from {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}
50% {
opacity: 1;
}
}
.fadein {
animation-name: fadein;
animation-duration: 3s;
animation-fill-mode: both;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Button hover animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* (Also apply to icon) */
.button-hover, .credit-hover{
display:inline-block;
-webkit-transform:perspective(1px) translateZ(0);
transform:perspective(1px) translateZ(0);
box-shadow:0 0 1px rgba(0,0,0,0);
-webkit-transition-duration:.1s;
transition-duration:.1s;
-webkit-transition-property:transform;
transition-property:transform
}
.button-hover:active,
.button-hover:focus,
.button-hover:hover{
-webkit-transform:scale(1.009);
transform:scale(1.009)
}
.credit-hover:active,
.credit-hover:focus,
.credit-hover:hover{
-webkit-transform:scale(1.04);
transform:scale(1.04)
}
/* Footer hover animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.footer-hover{
display:inline-block;
-webkit-transform:perspective(1px) translateZ(0);
transform:perspective(1px) translateZ(0);
box-shadow:0 0 1px rgba(0,0,0,0);
-webkit-transition-duration:.3s;
transition-duration:.3s;
-webkit-transition-property:transform;
transition-property:transform;
-webkit-transition-timing-function:ease-out;
transition-timing-function:ease-out
}
.footer-hover:active,.footer-hover:focus,.footer-hover:hover{
-webkit-transform:translateY(-8px);
transform:translateY(-8px)
}