Skip to content

Commit 1ae4432

Browse files
committed
add glith mode button
1 parent 60b1519 commit 1ae4432

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

buttons/buttons.css

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,3 +2703,89 @@ a:focus-visible {
27032703
}
27042704
}
27052705

2706+
/* Nima-sltn btn-1 start */
2707+
2708+
.Nima-sltn-1 {
2709+
position: relative;
2710+
padding: 18px 50px;
2711+
font-size: 20px;
2712+
font-weight: bold;
2713+
text-transform: uppercase;
2714+
letter-spacing: 4px;
2715+
color: #0ff;
2716+
border: 2px solid #0ff;
2717+
background: rgba(0, 0, 0, 0.4);
2718+
border-radius: 12px;
2719+
cursor: pointer;
2720+
overflow: hidden;
2721+
transition: 0.3s ease-in-out;
2722+
text-shadow: 0 0 10px #0ff, 0 0 20px #00ffff;
2723+
position: relative;
2724+
}
2725+
2726+
.Nima-sltn-1 span {
2727+
position: relative;
2728+
display: inline-block;
2729+
transition: 0.3s ease-in-out;
2730+
}
2731+
2732+
.Nima-sltn-1 span::before,
2733+
.Nima-sltn-1 span::after {
2734+
content: attr(data-text);
2735+
position: absolute;
2736+
top: 0;
2737+
left: 0;
2738+
width: 100%;
2739+
overflow: hidden;
2740+
color: #ff00ff;
2741+
opacity: 0;
2742+
transition: opacity 0.2s ease-in-out;
2743+
}
2744+
2745+
.Nima-sltn-1:hover span::before {
2746+
opacity: 0.75;
2747+
left: 2px;
2748+
text-shadow: -2px 0 #ff00ff;
2749+
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
2750+
animation: glitch 0.6s infinite;
2751+
}
2752+
2753+
.Nima-sltn-1:hover span::after {
2754+
opacity: 0.75;
2755+
left: -2px;
2756+
text-shadow: -2px 0 #00ffff;
2757+
clip-path: polygon(0 60%, 100% 60%, 100% 90%, 0 90%);
2758+
animation: glitch 0.45s infinite reverse;
2759+
}
2760+
2761+
@keyframes glitch {
2762+
0% {
2763+
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
2764+
}
2765+
25% {
2766+
clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
2767+
}
2768+
50% {
2769+
clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%);
2770+
}
2771+
75% {
2772+
clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%);
2773+
}
2774+
100% {
2775+
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
2776+
}
2777+
}
2778+
2779+
.Nima-sltn-1:hover {
2780+
box-shadow: 0 0 20px #0ff, 0 0 40px #ff00ff;
2781+
transform: scale(1.08) rotateX(8deg) rotateY(4deg);
2782+
border-color: #ff00ff;
2783+
color: #fff;
2784+
}
2785+
2786+
.Nima-sltn-1:active {
2787+
transform: scale(0.95);
2788+
box-shadow: 0 0 10px #0ff, 0 0 20px #ff00ff;
2789+
}
2790+
2791+
/* Nima-sltn btn-1 end */

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,17 @@
709709
</div>
710710
<!-- Amit's btn-->
711711

712+
<!-- Nima-sltn btn -->
713+
<div class="button-container">
714+
<button class="Nima-sltn-1">
715+
<span data-text="Hover me">Hover me</span>
716+
</button>
717+
<div class="createdby-section">
718+
Created by
719+
<a href="https://github.com/Nima-sltn">Nima-sltn</a>
720+
</div>
721+
</div>
722+
<!-- Nima-sltn btn-->
712723

713724

714725
</div>

0 commit comments

Comments
 (0)