Skip to content

Commit 5889ab5

Browse files
committed
Added Cyberpunk glitch button
1 parent 644dddc commit 5889ab5

File tree

2 files changed

+99
-2
lines changed

2 files changed

+99
-2
lines changed

buttons/buttons.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,3 +2528,92 @@ a:focus-visible {
25282528
content: attr(data-front);
25292529
transform: translateY(0) rotateX(0);
25302530
}
2531+
2532+
.arnav-btn-2, .arnav-btn-2::after {
2533+
width: 200px;
2534+
height: 69px;
2535+
padding-left: 35px;
2536+
font-size: 36px;
2537+
font-family: 'Inter';
2538+
font-weight: 700;
2539+
font-size: 1.5rem;
2540+
background: linear-gradient(45deg, transparent 5%, #F8F005 5%);
2541+
border: 0;
2542+
color: #000;
2543+
line-height: 65px;
2544+
box-shadow: 6px 0px 0px #00E6F6;
2545+
outline: transparent;
2546+
position: relative;
2547+
}
2548+
2549+
.arnav-btn-2::after {
2550+
--slice-0: inset(50% 50% 50% 50%);
2551+
--slice-1: inset(80% -6px 0 0);
2552+
--slice-2: inset(50% -6px 30% 0);
2553+
--slice-3: inset(10% -6px 85% 0);
2554+
--slice-4: inset(40% -6px 43% 0);
2555+
--slice-5: inset(80% -6px 5% 0);
2556+
2557+
content: 'HOVER ME';
2558+
display: block;
2559+
position: absolute;
2560+
top: 0;
2561+
left: 0;
2562+
right: 0;
2563+
bottom: 0;
2564+
background: linear-gradient(45deg, transparent 3%, #00E6F6 3%, #00E6F6 5%, #F8F005 5%);
2565+
text-shadow: -3px -3px 0px #FF013C, 3px 3px 0px #00E6F6;
2566+
clip-path: var(--slice-0);
2567+
}
2568+
2569+
.arnav-btn-2:hover::after {
2570+
animation: 1s glitch;
2571+
animation-timing-function: steps(2, end);
2572+
}
2573+
2574+
@keyframes glitch {
2575+
0% {
2576+
clip-path: var(--slice-1);
2577+
transform: translate(-20px, -10px);
2578+
}
2579+
10% {
2580+
clip-path: var(--slice-3);
2581+
transform: translate(10px, 10px);
2582+
}
2583+
20% {
2584+
clip-path: var(--slice-1);
2585+
transform: translate(-10px, 10px);
2586+
}
2587+
30% {
2588+
clip-path: var(--slice-3);
2589+
transform: translate(0px, 5px);
2590+
}
2591+
40% {
2592+
clip-path: var(--slice-2);
2593+
transform: translate(-5px, 0px);
2594+
}
2595+
50% {
2596+
clip-path: var(--slice-3);
2597+
transform: translate(5px, 0px);
2598+
}
2599+
60% {
2600+
clip-path: var(--slice-4);
2601+
transform: translate(5px, 10px);
2602+
}
2603+
70% {
2604+
clip-path: var(--slice-2);
2605+
transform: translate(-10px, 10px);
2606+
}
2607+
80% {
2608+
clip-path: var(--slice-5);
2609+
transform: translate(20px, -10px);
2610+
}
2611+
90% {
2612+
clip-path: var(--slice-1);
2613+
transform: translate(-10px, 0px);
2614+
}
2615+
100% {
2616+
clip-path: var(--slice-1);
2617+
transform: translate(0);
2618+
}
2619+
}

index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,23 @@
643643
<!-- getRicha-btn-1 end -->
644644

645645

646-
<!--0b51d14n217's btn-->
646+
<!--0b51d14n217's btns-->
647647
<div class="button-container">
648648
<a class="arnav-btn-1" data-back="Hover Me" data-front="Hover Me"></a>
649649
<div class="createdby-section">
650650
Created by
651651
<a href="https://github.com/0b51d14n217">0b51d14n217</a>
652652
</div>
653653
</div>
654-
<!--0b51d14n217's btn-->
654+
655+
<div class="button-container">
656+
<a class="arnav-btn-2">HOVER ME</a>
657+
<div class="createdby-section">
658+
Created by
659+
<a href="https://github.com/0b51d14n217">0b51d14n217</a>
660+
</div>
661+
</div>
662+
<!--0b51d14n217's btns-->
655663

656664

657665
</div>

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