Skip to content

Commit 81a44e1

Browse files
Merge pull request #120 from gauravsharmatheofficial/main
added a animated css button
2 parents 7ae91b4 + 3963e8c commit 81a44e1

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

buttons/buttons.css

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

2311-
/*radzhiv's btn end*/
2311+
/*radzhiv's btn end*/
2312+
2313+
/* Gaurav Sharma's button 1 starts*/
2314+
2315+
.gauravsharmatheofficial-btn-1-svg {
2316+
position: absolute;
2317+
right: 54px;
2318+
top: 114px;
2319+
fill: none;
2320+
stroke: #fff;
2321+
stroke-dasharray: 150 480;
2322+
stroke-dashoffset: 150;
2323+
transition: 1s ease-in-out;
2324+
}
2325+
2326+
.gauravsharmatheofficial-btn-1 {
2327+
width: 180px;
2328+
height: 60px;
2329+
cursor: pointer;
2330+
background: transparent;
2331+
border: 1px solid #a5d3fd;
2332+
outline: none;
2333+
transition: 1s ease-in-out;
2334+
}
2335+
2336+
.gauravsharmatheofficial-btn-1:hover {
2337+
transition: 1s ease-in-out;
2338+
background: #5f9ad4;
2339+
}
2340+
2341+
.gauravsharmatheofficial-btn-1:hover .gauravsharmatheofficial-btn-1-svg {
2342+
stroke-dashoffset: -480;
2343+
}
2344+
2345+
.gauravsharmatheofficial-btn-1-span {
2346+
color: white;
2347+
font-size: 18px;
2348+
font-weight: 100;
2349+
}
2350+
2351+
/* Gaurav Sharma's button 1 end*/

index.html

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

596+
<!-- Gaurav Sharma's btn start-->
597+
<div class="button-container ">
598+
<button class="gauravsharmatheofficial-btn-1">
599+
<svg class="gauravsharmatheofficial-btn-1-svg" width="180px" height="60px" viewBox="0 0 180 60">
600+
<polyline points="179,1 179,59 1,59 1,1 179,1"/>
601+
<polyline points="179,1 179,59 1,59 1,1 179,1"/>
602+
</svg>
603+
<span class="gauravsharmatheofficial-btn-1-span"> Hover Me </span></button>
604+
<div class="createdby-section">
605+
Created by
606+
<a href="https://github.com/gauravsharmatheofficial"> Gaurav Sharma </a>
607+
</div>
608+
</div>
609+
<!-- Gaurav Sharma's btn end-->
596610

597611
</div>
598612

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