Skip to content

Commit fa6eab6

Browse files
committed
Button Fix
1 parent a294da5 commit fa6eab6

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

buttons/buttons.css

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,31 +2048,29 @@ box-shadow: rgb(40, 159, 237) 5px 5px 0px 0px, rgb(95, 184, 255) 10px 10px 0px 0
20482048
/* Sumit-btn-3 end */
20492049

20502050
/* Jasimrazi-btn-1 starts here */
2051+
20512052
.Jasimrazi-btn-1 {
20522053
font-size: 20px;
20532054
font-weight: 200;
20542055
letter-spacing: 1px;
20552056
padding: 13px 50px 13px;
20562057
outline: 0;
2057-
border: 1px solid black;
2058+
border: 1px solid rgb(255, 255, 255);
20582059
cursor: pointer;
20592060
position: relative;
2061+
color: white;
20602062
background-color: rgba(0, 0, 0, 0);
2063+
transition: 0.4s all ease;
20612064
}
20622065

2063-
.Jasimrazi-btn-1::after {
2064-
content: "";
2066+
.Jasimrazi-btn-1:hover{
2067+
20652068
background-color: #ffe54c;
2066-
width: 100%;
2067-
z-index: -1;
2068-
position: absolute;
2069-
height: 100%;
2070-
top: 7px;
2071-
left: 7px;
2072-
transition: 0.2s;
2069+
top: -7px;
2070+
left: -7px;
2071+
transition: 0.4s all ease;
2072+
color: #000000;
2073+
border: 1px solid #000000;
20732074
}
20742075

2075-
.Jasimrazi-btn-1:hover::after {
2076-
top: 0px;
2077-
left: 0px;
2078-
}
2076+
/* Jasimrazi-btn-1 ends here */

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
<!-- Sumit3 btn end -->
536536

537537
<!--Jasim Razi btn start-->
538-
<div class = "button-container">
538+
<div class="button-container">
539539
<button class = "Jasimrazi-btn-1"><span> Hover Me</span></button>
540540
<div class = "createdby-section">
541541
Created by<a href = "https://github.com/jasimrazi"> Jasim Razi</a>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy