Skip to content

Commit 96e8106

Browse files
committed
Added a new button with hover effect
1 parent 2f44547 commit 96e8106

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

buttons/buttons.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,4 +1744,32 @@ a:focus-visible {
17441744
animation:slidebg 5s linear infinite;
17451745
}
17461746

1747-
/* cypherrs 2nd bt end */
1747+
/* cypherrs 2nd bt end */
1748+
1749+
/* radzhiv's btn start*/
1750+
.newbtn-btn-1{
1751+
padding: 10px;
1752+
font-size: 20px;
1753+
font-weight: bolder;
1754+
border-radius: 5px;
1755+
background-image: linear-gradient(to right,#3494E6,#ec6ead);
1756+
color: white;
1757+
}
1758+
.newbtn-btn-1:hover{
1759+
text-align: center;
1760+
color: #f35626;
1761+
background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
1762+
-webkit-background-clip: text;
1763+
-webkit-text-fill-color: transparent;
1764+
animation: hue 10s infinite linear;
1765+
}
1766+
1767+
@keyframes hue {
1768+
from {
1769+
-webkit-filter: hue-rotate(0deg);
1770+
}
1771+
to {
1772+
-webkit-filter: hue-rotate(-360deg);
1773+
}
1774+
}
1775+
/*radzhiv's btn end*/

index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<title>CSS Buttons</title>
99
<link rel="stylesheet" href="./assets/css/style.css" />
1010
<link rel="stylesheet" href="./buttons/buttons.css" />
11+
<link rel="stylesheet" href="./buttons/buttons.scss">
1112
<link rel="preconnect" href="https://fonts.googleapis.com" />
1213
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1314
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet" />
@@ -431,10 +432,16 @@
431432
</div>
432433
</div>
433434
<!-- cyphers 2nd button end -->
434-
</div>
435-
436-
437-
435+
<!-- radzhiv's btn start -->
436+
<div class="button-container">
437+
<button class="newbtn-btn-1">Hover me</button>
438+
<div class="createdby-section">
439+
Created by
440+
<a href="https://github.com/radzhiv25">radzhiv</a>
441+
</div>
442+
</div>
443+
<!-- radzhiv's btn end -->
444+
</div>
438445
</div>
439446

440447
</main>

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