Skip to content

add glith mode button #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
86 changes: 86 additions & 0 deletions buttons/buttons.css
Original file line number Diff line number Diff line change
@@ -2703,3 +2703,89 @@ a:focus-visible {
}
}

/* Nima-sltn btn-1 start */

.Nima-sltn-1 {
position: relative;
padding: 18px 50px;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 4px;
color: #0ff;
border: 2px solid #0ff;
background: rgba(0, 0, 0, 0.4);
border-radius: 12px;
cursor: pointer;
overflow: hidden;
transition: 0.3s ease-in-out;
text-shadow: 0 0 10px #0ff, 0 0 20px #00ffff;
position: relative;
}

.Nima-sltn-1 span {
position: relative;
display: inline-block;
transition: 0.3s ease-in-out;
}

.Nima-sltn-1 span::before,
.Nima-sltn-1 span::after {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
overflow: hidden;
color: #ff00ff;
opacity: 0;
transition: opacity 0.2s ease-in-out;
}

.Nima-sltn-1:hover span::before {
opacity: 0.75;
left: 2px;
text-shadow: -2px 0 #ff00ff;
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
animation: glitch 0.6s infinite;
}

.Nima-sltn-1:hover span::after {
opacity: 0.75;
left: -2px;
text-shadow: -2px 0 #00ffff;
clip-path: polygon(0 60%, 100% 60%, 100% 90%, 0 90%);
animation: glitch 0.45s infinite reverse;
}

@keyframes glitch {
0% {
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
}
25% {
clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}
50% {
clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%);
}
75% {
clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%);
}
100% {
clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
}
}

.Nima-sltn-1:hover {
box-shadow: 0 0 20px #0ff, 0 0 40px #ff00ff;
transform: scale(1.08) rotateX(8deg) rotateY(4deg);
border-color: #ff00ff;
color: #fff;
}

.Nima-sltn-1:active {
transform: scale(0.95);
box-shadow: 0 0 10px #0ff, 0 0 20px #ff00ff;
}

/* Nima-sltn btn-1 end */
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -709,6 +709,17 @@
</div>
<!-- Amit's btn-->

<!-- Nima-sltn btn -->
<div class="button-container">
<button class="Nima-sltn-1">
<span data-text="Hover me">Hover me</span>
</button>
<div class="createdby-section">
Created by
<a href="https://github.com/Nima-sltn">Nima-sltn</a>
</div>
</div>
<!-- Nima-sltn btn-->


</div>