Skip to content

Commit 44aa895

Browse files
added a animated button
1 parent 7ae91b4 commit 44aa895

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

buttons/buttons.css

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2308,4 +2308,45 @@ a:focus-visible {
23082308
}
23092309
}
23102310

2311-
/*radzhiv's btn end*/
2311+
/*radzhiv's btn end*/
2312+
2313+
2314+
/* Aditya's button starts */
2315+
2316+
.aditya-btn {
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: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: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 */

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,16 @@
593593
</div>
594594
<!-- radzhiv's btn end -->
595595

596+
<!-- Aditya's btn start -->
597+
<div class="button-container">
598+
<button class="aditya-btn">Hover Me</button>
599+
<div class="createdby-section">
600+
Created by
601+
<a href="https://github.com/Aditya-ahirwar">Aditya Ahirwar</a>
602+
</div>
603+
</div>
604+
<!-- Aditya's btn end -->
605+
596606

597607
</div>
598608

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