Skip to content

Commit c8a5639

Browse files
Merge pull request #129 from Aditya-ahirwar/aditya-ahirwar
added a animated button
2 parents 81a44e1 + 5fa67e1 commit c8a5639

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed

buttons/buttons.css

+41
Original file line numberDiff line numberDiff line change
@@ -2310,6 +2310,47 @@ a:focus-visible {
23102310

23112311
/*radzhiv's btn end*/
23122312

2313+
2314+
/* Aditya's button starts */
2315+
2316+
.aditya-btn-1 {
2317+
width: 150px;
2318+
height: 50px;
2319+
color: white;
2320+
position: relative;
2321+
display: inline-block;
2322+
background: rgb(0, 68, 255);
2323+
border: none;
2324+
border-radius: 4px;
2325+
padding: 10px 25px;
2326+
font-family: Verdana, Geneva, Tahoma, sans-serif;
2327+
font-weight: 20px;
2328+
cursor: pointer;
2329+
transition: all 0.2s ease;
2330+
z-index: 1;
2331+
}
2332+
.aditya-btn-1:after {
2333+
position: absolute;
2334+
content: "";
2335+
width: 0;
2336+
height: 0;
2337+
top: 0;
2338+
left: 0;
2339+
border-radius: 5px;
2340+
background-image: linear-gradient(275deg, #190c8e 0%, #b53232 74%);
2341+
transition: all 0.2s ease-in-out;
2342+
z-index: -1;
2343+
}
2344+
.aditya-btn-1:hover:after {
2345+
top: auto;
2346+
bottom: 0;
2347+
width: 100%;
2348+
height: 100%;
2349+
border-radius: 40%;
2350+
border: none;
2351+
}
2352+
/* Aditya's button end */
2353+
23132354
/* Gaurav Sharma's button 1 starts*/
23142355

23152356
.gauravsharmatheofficial-btn-1-svg {

index.html

+15-2
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,23 @@
588588
<button class="radzhiv-btn-1">Hover me</button>
589589
<div class="createdby-section">
590590
Created by
591-
<a href="https://github.com/radzhiv25">radzhiv</a>
591+
<a href="https://github.com/radzhiv25">radzhiv25</a>
592592
</div>
593593
</div>
594594
<!-- radzhiv's btn end -->
595595

596+
597+
<!-- Aditya's btn start -->
598+
<div class="button-container">
599+
<button class="aditya-btn-1">Hover Me</button>
600+
<div class="createdby-section">
601+
Created by
602+
<a href="https://github.com/Aditya-ahirwar">Aditya-ahirwar</a>
603+
</div>
604+
</div>
605+
<!-- Aditya's btn end -->
606+
607+
596608
<!-- Gaurav Sharma's btn start-->
597609
<div class="button-container ">
598610
<button class="gauravsharmatheofficial-btn-1">
@@ -603,11 +615,12 @@
603615
<span class="gauravsharmatheofficial-btn-1-span"> Hover Me </span></button>
604616
<div class="createdby-section">
605617
Created by
606-
<a href="https://github.com/gauravsharmatheofficial"> Gaurav Sharma </a>
618+
<a href="https://github.com/gauravsharmatheofficial">gauravsharmatheofficial</a>
607619
</div>
608620
</div>
609621
<!-- Gaurav Sharma's btn end-->
610622

623+
611624
</div>
612625

613626
</main>

0 commit comments

Comments
 (0)