Skip to content

Added my customized button css #143

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

Closed
wants to merge 1 commit into from
Closed
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
34 changes: 34 additions & 0 deletions buttons/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -2639,7 +2639,41 @@ a:focus-visible {
animation: 1s arnav-btn-2-glitch;
animation-timing-function: steps(2, end);
}

.divyanshi-btn-1{
background-color: #343A40;
border-radius: 4px;
color: #fff;
cursor: pointer;
padding: 8px 16px;
}

.divyanshi-btn-1:hover{
background-image:linear-gradient(
to right,
#E7484F,
#E7484F 16.65%,
#F68B1D 16.65%,
#F68B1D 33.3%,
#FCED00 33.3%,
#FCED00 49.95%,
#009E4F 49.95%,
#009E4F 66.6%,
#00AAC3 66.6%,
#00AAC3 83.25%,
#732982 83.25%,
#732982 100%,
#E7484F 100%
);
animation:slidebg 2s linear infinite;
}

@keyframes slidebg {
to {
background-position:20vw;
}
}

@keyframes arnav-btn-2-glitch {
0% {
clip-path: var(--slice-1);
Expand Down
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,15 @@
</div>
<!-- radzhiv's btn-->

<!--divyanshi's btn-->
<div class="button-container">
<a class="divyanshi-btn-1" data-back="Hover Me" data-front="Hover Me">Hover me</a>
<div class="createdby-section">
Created by
<a href="https://github.com/divya-nshi">divya-nshi</a>
</div>
</div>
<!--divyanshi's btn-->


</div>
Expand Down