Skip to content

Commit e3f644f

Browse files
Merge pull request #133 from 0b51d14n217/main
Added new flipping button
2 parents 9289e57 + 4e45eb7 commit e3f644f

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

buttons/buttons.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,3 +2435,53 @@ a:focus-visible {
24352435

24362436
/* Gaurav Sharma's button 1 end*/
24372437

2438+
.arnav-btn-1{
2439+
opacity: 1;
2440+
outline: 0;
2441+
color: #fff;
2442+
line-height: 40px;
2443+
position: relative;
2444+
text-align: center;
2445+
letter-spacing: 1px;
2446+
display: inline-block;
2447+
text-decoration: none;
2448+
font-family: "Inter";
2449+
font-weight: 700;
2450+
text-transform: uppercase;
2451+
}
2452+
.arnav-btn-1:hover:after {
2453+
opacity: 1;
2454+
transform: translateY(0) rotateX(0);
2455+
}
2456+
.arnav-btn-1:hover:before {
2457+
opacity: 0;
2458+
transform: translateY(50%) rotateX(90deg);
2459+
}
2460+
.arnav-btn-1:after {
2461+
top: 0;
2462+
left: 0;
2463+
opacity: 0;
2464+
width: 100%;
2465+
color: #323237;
2466+
display: block;
2467+
transition: 0.5s;
2468+
position: absolute;
2469+
background: #adadaf;
2470+
content: attr(data-back);
2471+
transform: translateY(-50%) rotateX(90deg);
2472+
}
2473+
.arnav-btn-1:before {
2474+
top: 0;
2475+
left: 0;
2476+
opacity: 1;
2477+
color: #adadaf;
2478+
display: block;
2479+
padding: 0 30px;
2480+
line-height: 40px;
2481+
transition: 0.5s;
2482+
position: relative;
2483+
background: #323237;
2484+
content: attr(data-front);
2485+
transform: translateY(0) rotateX(0);
2486+
}
2487+

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,16 @@
632632
<!-- Gaurav Sharma's btn end-->
633633

634634

635+
<!--0b51d14n217's btn-->
636+
<div class="button-container">
637+
<a class="arnav-btn-1" data-back="Hover Me" data-front="Hover Me"></a>
638+
<div class="createdby-section">
639+
Created by
640+
<a href="https://github.com/0b51d14n217">0b51d14n217</a>
641+
</div>
642+
</div>
643+
<!--0b51d14n217's btn-->
644+
635645
</div>
636646

637647
</main>
@@ -685,4 +695,4 @@
685695

686696
</body>
687697

688-
</html>
698+
</html>

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