Skip to content

Commit cfba312

Browse files
Merge pull request Design-and-Code#98 from kkartik07/kkartik07-btn1
add a styled button with a wave like animation
2 parents d903fda + 375d8e5 commit cfba312

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

buttons/buttons.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,39 @@ box-shadow: rgb(40, 159, 237) 5px 5px 0px 0px, rgb(95, 184, 255) 10px 10px 0px 0
17681768
/* cypherrs 2nd bt end */
17691769

17701770

1771+
/* kkartik07's 1st btn start */
1772+
.kkartik07-btn-1 {
1773+
padding: 18px 32px;
1774+
font-size: 30px;
1775+
border: none;
1776+
outline: none;
1777+
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
1778+
cursor: pointer;
1779+
margin: 8px 15px;
1780+
transition: 0.2s ease;
1781+
background: #003877d5;
1782+
color: rgba(255, 255, 255, 0.756);
1783+
position: relative;
1784+
overflow: hidden;
1785+
box-shadow: rgba(110, 110, 119, 0.452) 0px 8px 30px 0px;
1786+
}
1787+
.kkartik07-btn-1::before {
1788+
width: 200%;
1789+
height: 200%;
1790+
content: "";
1791+
transform: rotate(-45deg);
1792+
position: absolute;
1793+
top: -10%;
1794+
left: -180%;
1795+
background: rgba(119, 129, 238, 0.2);
1796+
transition: 0.3s ease-in-out;
1797+
}
1798+
.kkartik07-btn-1:hover::before {
1799+
left: 55%;
1800+
}
1801+
/* kkartik07's 1st btn end */
1802+
1803+
17711804
/* Deepak Kumar btn start */
17721805
.DeepakKumar-button-31 {
17731806
position: absolute;
@@ -2013,3 +2046,4 @@ box-shadow: rgb(40, 159, 237) 5px 5px 0px 0px, rgb(95, 184, 255) 10px 10px 0px 0
20132046
}
20142047

20152048
/* Sumit-btn-3 end */
2049+

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,17 @@
441441
<!-- cyphers 2nd button end -->
442442

443443

444+
<!-- kkartik07's button start -->
445+
<div class="button-container">
446+
<button class="kkartik07-btn-1"> Hover me </button>
447+
<div class="createdby-section">
448+
Created by
449+
<a href="https://github.com/kkartik07">kkartik07</a>
450+
</div>
451+
</div>
452+
<!-- kkartik07's button end -->
453+
454+
444455
<!--Deepak Kumar btn start-->
445456
<div class = "button-container">
446457
<button class = "DeepakKumar-button-31"><span> Hover Me</span></button>

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