Skip to content

Commit c80af7b

Browse files
committed
Refine Card Hover Animation
1 parent f160f9e commit c80af7b

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

app/stylesheets/Applications.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
#card-hover {
22
cursor: pointer;
33
position: relative;
4-
font-size: 28px;
5-
border-top-right-radius: 10px;
6-
border-bottom-left-radius: 10px;
74
transition: all 1s;
85
&:after,
96
&:before {
107
content: ' ';
118
width: 10px;
129
height: 10px;
1310
position: absolute;
14-
border: 0px solid #fff;
1511
transition: all 1s;
1612
}
1713
&:after {
1814
top: -1px;
19-
left: -1px;
15+
right: -1px;
2016
border-top: 5px solid black;
21-
border-left: 5px solid black;
17+
border-right: 5px solid black;
2218
}
2319
&:before {
2420
bottom: -1px;
25-
right: -1px;
21+
left: -1px;
2622
border-bottom: 5px solid black;
27-
border-right: 5px solid black;
23+
border-left: 5px solid black;
2824
}
2925
&:hover {
3026
border-top-right-radius: 0px;
3127
border-bottom-left-radius: 0px;
3228
&:before,
3329
&:after {
34-
width: 100%;
35-
height: 100%;
30+
width: 25%;
31+
height: 25%;
3632
}
3733
}
3834
}

0 commit comments

Comments
 (0)