-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
127 lines (106 loc) · 1.94 KB
/
styles.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@import url('https://fonts.googleapis.com/css?family=Poppins:900i');
* {
box-sizing: border-box;
}
body{
background-color: black;
}
.wrapper {
margin-top: 200px;
display: flex;
justify-content: center;
align-items: center;
}
.cta {
display: flex;
padding: 10px 45px;
text-decoration: none;
font-family: 'Press Start 2P', cursive;
font-style: italic;
font-size: 40px;
color:#01579b;
background: black;
transition: 1s;
box-shadow: 6px 6px 0 black;
transform: skewX(-15deg);
}
.cta:focus {
outline: none;
}
.cta:hover {
transition: 0.5s;
box-shadow: 10px 10px 0 #01579b;
}
.cta span:nth-child(2) {
transition: 0.5s;
margin-right: 0px;
}
.cta:hover span:nth-child(2) {
transition: 0.5s;
margin-right: 45px;
}
span {
transform: skewX(15deg)
}
span:nth-child(2) {
width: 20px;
margin-left: 30px;
position: relative;
top: 12%;
}
/**************SVG****************/
path.one {
transition: 0.4s;
transform: translateX(-60%);
}
path.two {
transition: 0.5s;
transform: translateX(-30%);
}
.cta:hover path.three {
animation: color_anim 1s infinite 0.2s;
}
.cta:hover path.one {
transform: translateX(0%);
animation: color_anim 1s infinite 0.6s;
}
.cta:hover path.two {
transform: translateX(0%);
animation: color_anim 1s infinite 0.4s;
}
span.text{
font-size: larger;
}
/* SVG animations */
@keyframes color_anim {
0% {
fill: white;
}
50% {
fill: #01579b;
}
100% {
fill: white;
}
}
.progress {
margin: 50px auto;
padding: 2px;
width: 100%;
max-width: 500px;
border: 3px solid #01579b;
height: 30px;
}
.progress .progress__bar {
height: 100%;
width: 0%;
background-color: #01579b;
animation: fill-bar 3s;
}
.percent{
background-color: white;
}
@keyframes fill-bar {
from {width: 0%;}
to {width: 100%;}
}