File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-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 Five</ 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
+ position : absolute;
3
+ text-decoration : none;
4
+ text-transform : uppercase;
5
+ padding : 1rem 4rem ;
6
+ background : # fff ;
7
+ color : # 000 ;
8
+ border-radius : 100px ;
9
+ font-size : 1.5rem ;
10
+ transition : all 0.2s ;
11
+ }
12
+
13
+ a ::before {
14
+ content : "" ;
15
+ position : absolute;
16
+ top : 0 ;
17
+ left : 0 ;
18
+ width : 100% ;
19
+ height : 100% ;
20
+ background : # fff ;
21
+ border-radius : 100px ;
22
+ transition : all 1s ;
23
+ z-index : -1 ;
24
+ }
25
+
26
+ a : hover ::before {
27
+ transform : scale (1.4 , 1.6 );
28
+ opacity : 0.3 ;
29
+ }
30
+
31
+ a : hover {
32
+ transform : translateX (-3px );
33
+ box-shadow : 0 10px 20px rgba (0 , 0 , 0 , 0.2 );
34
+ }
35
+
36
+ a : active {
37
+ transform : translateY (1px );
38
+ box-shadow : 0 5px 10px rgba (0 , 0 , 0 , 0.2 );
39
+ }
You can’t perform that action at this time.
0 commit comments