Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions buttons/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -2703,3 +2703,63 @@ a:focus-visible {
}
}

/* MalavyaRaval-btn-1 CSS start */
.MalavyaRaval-btn-1 {
position: relative;
padding: 15px 45px;
width: 200px;
height: 60px;
overflow: hidden;
border-radius: 40px;
border: 2px solid #00d2ff;
cursor: pointer;
background-color: transparent;
transition: 0.5s;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}

.MalavyaRaval-btn-1-span {
position: relative;
z-index: 2;
color: #00d2ff;
font-size: 18px;
letter-spacing: 2px;
font-weight: bold;
text-transform: uppercase;
transition: 0.5s;
pointer-events: none;
}

.MalavyaRaval-btn-1:hover .MalavyaRaval-btn-1-span {
color: #ffffff;
}

.MalavyaRaval-btn-1::before {
content: '';
position: absolute;
top: 100%;
left: -50%;
width: 200%;
height: 200%;
background-color: #00d2ff;
border-radius: 40%;
transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}

.MalavyaRaval-btn-1:hover::before {
top: -50%;
animation: MalavyaRaval-btn-1-rotate 4s linear infinite;
}

@keyframes MalavyaRaval-btn-1-rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,22 @@
</div>
<!-- Amit's btn-->

<!-- MalavyaRaval-btn-1 start -->
<div class="button-container">
<button class="MalavyaRaval-btn-1">
<span class="MalavyaRaval-btn-1-span">Hover me</span>
</button>
<div class="createdby-section">
Created by
<a href="https://github.com/MalavyaRaval">MalavyaRaval</a>
</div>
</div>
<!-- MalavyaRaval-btn-1 end -->







</div>
Expand Down