Skip to content
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

Added a new button with hover effect #108

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
30 changes: 29 additions & 1 deletion buttons/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -1744,4 +1744,32 @@ a:focus-visible {
animation:slidebg 5s linear infinite;
}

/* cypherrs 2nd bt end */
/* cypherrs 2nd bt end */

/* radzhiv's btn start*/
.newbtn-btn-1{
padding: 10px;
font-size: 20px;
font-weight: bolder;
border-radius: 5px;
background-image: linear-gradient(to right,#3494E6,#ec6ead);
color: white;
}
.newbtn-btn-1:hover{
text-align: center;
color: #f35626;
background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: hue 10s infinite linear;
}

@keyframes hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}
/*radzhiv's btn end*/
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<title>CSS Buttons</title>
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./buttons/buttons.css" />
<link rel="stylesheet" href="./buttons/buttons.scss">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet" />
Expand Down Expand Up @@ -431,10 +432,16 @@
</div>
</div>
<!-- cyphers 2nd button end -->
</div>



<!-- radzhiv's btn start -->
<div class="button-container">
<button class="newbtn-btn-1">Hover me</button>
<div class="createdby-section">
Created by
<a href="https://github.com/radzhiv25">radzhiv</a>
</div>
</div>
<!-- radzhiv's btn end -->
</div>
</div>

</main>
Expand Down