File tree Expand file tree Collapse file tree 3 files changed +70
-6
lines changed
Expand file tree Collapse file tree 3 files changed +70
-6
lines changed Original file line number Diff line number Diff line change 1313 < a href ="# " class ="button-1 "> Hover Me</ a >
1414 < a href ="# " class ="button-2 "> Hover Me</ a >
1515 < a href ="# " class ="button-3 "> Hover Me</ a >
16+ < a href ="# " class ="button-4 "> Hover Me</ a >
1617 </ div >
1718
1819</ body >
Original file line number Diff line number Diff line change 1313}
1414
1515.button-container {
16- width : 100 % ;
17- height : 100 vh ;
16+ width : 90 % ;
17+ height : 30 % ;
1818 margin-left : auto ;
1919 margin-right : auto ;
2020 display : flex ;
3030 border : 2px solid #272727 ;
3131 padding : 20px 40px ;
3232 position : relative ;
33- margin : 25px ;
33+ margin : 5 px 25px ;
3434 }
3535
3636 .button-1 {
@@ -126,4 +126,36 @@ body {
126126 .button-3 :hover :after {
127127 transform : rotateY (0deg );
128128 }
129+
130+ .button-4 {
131+ color : #fff ;
132+ border-color : #fff ;
133+ background-color : #222 ;
134+ overflow : hidden ;
135+ transition : all 1s ;
136+ }
137+
138+ .button-4 :before {
139+ display : flex ;
140+ align-items : center ;
141+ justify-content : center ;
142+ content : " YEAH!" ;
143+ position : absolute ;
144+ top : 0 ;
145+ left : 0 ;
146+ background-color : #f44336 ;
147+ height : 100% ;
148+ width : 100% ;
149+ // z-index: -3;
150+ transform : translateY (-100% );
151+ transition : all 1s ;
152+ }
153+
154+ .button-4 :hover :before {
155+ transform : translateY (0 );
156+ }
157+
158+ .button-4 :hover {
159+ color : #fff ;
160+ }
129161}
Original file line number Diff line number Diff line change 1313}
1414
1515.button-container {
16- width : 100 % ;
17- height : 100 vh ;
16+ width : 90 % ;
17+ height : 30 % ;
1818 margin-left : auto;
1919 margin-right : auto;
2020 display : flex;
3131 border : 2px solid # 272727 ;
3232 padding : 20px 40px ;
3333 position : relative;
34- margin : 25px ;
34+ margin : 5 px 25px ;
3535}
3636
3737.button-container .button-1 {
@@ -127,3 +127,34 @@ body {
127127.button-container .button-3 : hover : after {
128128 transform : rotateY (0deg );
129129}
130+
131+ .button-container .button-4 {
132+ color : # fff ;
133+ border-color : # fff ;
134+ background-color : # 222 ;
135+ overflow : hidden;
136+ transition : all 1s ;
137+ }
138+
139+ .button-container .button-4 : before {
140+ display : flex;
141+ align-items : center;
142+ justify-content : center;
143+ content : "YEAH!" ;
144+ position : absolute;
145+ top : 0 ;
146+ left : 0 ;
147+ background-color : # f44336 ;
148+ height : 100% ;
149+ width : 100% ;
150+ transform : translateY (-100% );
151+ transition : all 1s ;
152+ }
153+
154+ .button-container .button-4 : hover : before {
155+ transform : translateY (0 );
156+ }
157+
158+ .button-container .button-4 : hover {
159+ color : # fff ;
160+ }
You can’t perform that action at this time.
0 commit comments