Skip to content

Commit 53b6214

Browse files
committed
add a styled button with a wave like animation
1 parent 2f44547 commit 53b6214

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

buttons/buttons.css

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

1747-
/* cypherrs 2nd bt end */
1747+
/* cypherrs 2nd bt end */
1748+
1749+
/* kkartik07's 1st btn start */
1750+
.kkartik07-1-btn {
1751+
padding: 18px 32px;
1752+
font-size: 30px;
1753+
border: none;
1754+
outline: none;
1755+
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
1756+
cursor: pointer;
1757+
margin: 8px 15px;
1758+
transition: 0.2s ease;
1759+
background: #003877d5;
1760+
color: rgba(255, 255, 255, 0.756);
1761+
position: relative;
1762+
overflow: hidden;
1763+
box-shadow: rgba(110, 110, 119, 0.452) 0px 8px 30px 0px;
1764+
}
1765+
.kkartik07-1-btn::before {
1766+
width: 200%;
1767+
height: 200%;
1768+
content: "";
1769+
transform: rotate(-45deg);
1770+
position: absolute;
1771+
top: -10%;
1772+
left: -180%;
1773+
background: rgba(119, 129, 238, 0.2);
1774+
transition: 0.3s ease-in-out;
1775+
}
1776+
.kkartik07-1-btn:hover::before {
1777+
left: 55%;
1778+
}
1779+
/* kkartik07's 1st btn end */

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,19 @@
431431
</div>
432432
</div>
433433
<!-- cyphers 2nd button end -->
434+
435+
436+
<!-- kkartik07's button start -->
437+
<div class="button-container">
438+
<button class="kkartik07-1-btn"> Hover me </button>
439+
<div class="createdby-section">
440+
Created by
441+
<a href="https://github.com/kkartik07">kkartik07</a>
442+
</div>
443+
</div>
444+
<!-- kkartik07's button end -->
445+
446+
434447
</div>
435448

436449

0 commit comments

Comments
 (0)