-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheffect.css
More file actions
50 lines (46 loc) · 830 Bytes
/
Copy patheffect.css
File metadata and controls
50 lines (46 loc) · 830 Bytes
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
body{
margin:0;
padding : 0;
font-family: "montserrat", sans-serif;
}
.middle{
position : absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.container {
position : relative;
display: inline-block;
padding : 0 40px;
cursor : pointer;
}
.text{
font-size: 100px;
text-transform: uppercase;
font-weight : 1000;
position : relative;
color : #34495e;
}
.text::before{
content : attr(data-text);
position: absolute;
color : #fff;
width : 0;
overflow: hidden;
transition: 0.6s;
}
.container::before {
content:"";
width : 0%;
height : 100%;
position : absolute;
background: #2980b9;
right : 0;
top: 0;
transition:0.6s
}
.container:hover .text::before,
.container:hover::before{
width : 100%
}