Skip to content
Merged
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
89 changes: 89 additions & 0 deletions buttons/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -2528,3 +2528,92 @@ a:focus-visible {
content: attr(data-front);
transform: translateY(0) rotateX(0);
}

.arnav-btn-2, .arnav-btn-2::after {
width: 200px;
height: 69px;
padding-left: 35px;
font-size: 36px;
font-family: 'Inter';
font-weight: 700;
font-size: 1.5rem;
background: linear-gradient(45deg, transparent 5%, #F8F005 5%);
border: 0;
color: #000;
line-height: 65px;
box-shadow: 6px 0px 0px #00E6F6;
outline: transparent;
position: relative;
}

.arnav-btn-2::after {
--slice-0: inset(50% 50% 50% 50%);
--slice-1: inset(80% -6px 0 0);
--slice-2: inset(50% -6px 30% 0);
--slice-3: inset(10% -6px 85% 0);
--slice-4: inset(40% -6px 43% 0);
--slice-5: inset(80% -6px 5% 0);

content: 'HOVER ME';
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 3%, #00E6F6 3%, #00E6F6 5%, #F8F005 5%);
text-shadow: -3px -3px 0px #FF013C, 3px 3px 0px #00E6F6;
clip-path: var(--slice-0);
}

.arnav-btn-2:hover::after {
animation: 1s arnav-btn-2-glitch;
animation-timing-function: steps(2, end);
}

@keyframes arnav-btn-2-glitch {
0% {
clip-path: var(--slice-1);
transform: translate(-20px, -10px);
}
10% {
clip-path: var(--slice-3);
transform: translate(10px, 10px);
}
20% {
clip-path: var(--slice-1);
transform: translate(-10px, 10px);
}
30% {
clip-path: var(--slice-3);
transform: translate(0px, 5px);
}
40% {
clip-path: var(--slice-2);
transform: translate(-5px, 0px);
}
50% {
clip-path: var(--slice-3);
transform: translate(5px, 0px);
}
60% {
clip-path: var(--slice-4);
transform: translate(5px, 10px);
}
70% {
clip-path: var(--slice-2);
transform: translate(-10px, 10px);
}
80% {
clip-path: var(--slice-5);
transform: translate(20px, -10px);
}
90% {
clip-path: var(--slice-1);
transform: translate(-10px, 0px);
}
100% {
clip-path: var(--slice-1);
transform: translate(0);
}
}
12 changes: 10 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,23 @@
<!-- getRicha-btn-1 end -->


<!--0b51d14n217's btn-->
<!--0b51d14n217's btns-->
<div class="button-container">
<a class="arnav-btn-1" data-back="Hover Me" data-front="Hover Me"></a>
<div class="createdby-section">
Created by
<a href="https://github.com/0b51d14n217">0b51d14n217</a>
</div>
</div>
<!--0b51d14n217's btn-->

<div class="button-container">
<a class="arnav-btn-2">HOVER ME</a>
<div class="createdby-section">
Created by
<a href="https://github.com/0b51d14n217">0b51d14n217</a>
</div>
</div>
<!--0b51d14n217's btns-->


</div>
Expand Down