File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < title > Button Three</ title >
7
+ < link rel ="shortcut icon " href ="../assets/icons8-button-96.png " type ="image/x-icon ">
8
+ < link rel ="stylesheet " href ="style.css ">
9
+ < link rel ="stylesheet " href ="../assets/resets.css ">
10
+ </ head >
11
+ < body >
12
+ < div class ="conatiner ">
13
+ < a href =""> Hover Me</ a >
14
+ </ div >
15
+ </ body >
16
+ </ html >
Original file line number Diff line number Diff line change
1
+ a {
2
+ padding : 1rem 4rem ;
3
+ background : rgba (17 , 17 , 137 , 0.824 );
4
+ color : # fff ;
5
+ font-size : 22px ;
6
+ text-transform : uppercase;
7
+ position : relative;
8
+ cursor : pointer;
9
+ text-decoration : none;
10
+ transition : all 0.3s ;
11
+ }
12
+
13
+ a ::before {
14
+ content : "" ;
15
+ position : absolute;
16
+ width : 24px ;
17
+ height : 24px ;
18
+ top : -10px ;
19
+ left : -10px ;
20
+ /* bg was added for test purpose only */
21
+ /* background: teal; */
22
+ border-top : 4px solid darkblue;
23
+ border-left : 4px solid darkblue;
24
+ transition : all 0.222s ;
25
+ }
26
+
27
+ a : hover ::before , a : hover ::after {
28
+ height : 100% ;
29
+ width : 100% ;
30
+ }
31
+
32
+
33
+ a ::after {
34
+ content : "" ;
35
+ position : absolute;
36
+ width : 24px ;
37
+ height : 24px ;
38
+ right : -10px ;
39
+ bottom : -10px ;
40
+ border-bottom : 4px solid crimson;
41
+ border-right : 4px solid crimson;
42
+ transition : all 0.222s ;
43
+ }
You can’t perform that action at this time.
0 commit comments