forked from PCCoE-Hacktoberfest-21/animated-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-component.css
66 lines (59 loc) · 998 Bytes
/
sample-component.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
/* Add css here */
* {
margin: 10px;
}
.component-cards {
display: flex;
flex-direction: row;
}
.card {
margin: 10px;
}
.container-fluid .line {
cursor: pointer;
position: relative;
height: 6rem;
width: 80vw;
}
.container-fluid .line span {
margin-top: 0px;
position: absolute;
font-size: 5rem;
opacity: 0.1;
transition: 0.5s all ease-in-out;
}
.container-fluid .line h4 {
opacity: 0.8;
height: 5rem;
padding-top: 1.5rem;
text-decoration: none;
position: relative;
color: black;
display: inline-block;
letter-spacing: 2px;
z-index: 1;
transition: all 1s;
}
.container-fluid .line h4:before {
content: '';
height: 1px;
width: 0;
height: 100%;
background-color: black;
position: absolute;
top: 0;
left: -10px;
z-index: -1;
transition: all 0.5s;
}
.container-fluid .line:hover > h4 {
color: white;
transform: translateX(54px);
}
.container-fluid .line:hover > h4::before {
width: 100%;
}
.container-fluid .line:hover > span {
opacity: 1;
color: #ffd580;
}