Skip to content

Commit e357a96

Browse files
committed
Added new flipping button
1 parent 81a44e1 commit e357a96

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

buttons/buttons.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,3 +2349,53 @@ a:focus-visible {
23492349
}
23502350

23512351
/* Gaurav Sharma's button 1 end*/
2352+
2353+
.arnav-btn{
2354+
opacity: 1;
2355+
outline: 0;
2356+
color: #fff;
2357+
line-height: 40px;
2358+
position: relative;
2359+
text-align: center;
2360+
letter-spacing: 1px;
2361+
display: inline-block;
2362+
text-decoration: none;
2363+
font-family: "Inter";
2364+
font-weight: 700;
2365+
text-transform: uppercase;
2366+
}
2367+
.arnav-btn:hover:after {
2368+
opacity: 1;
2369+
transform: translateY(0) rotateX(0);
2370+
}
2371+
.arnav-btn:hover:before {
2372+
opacity: 0;
2373+
transform: translateY(50%) rotateX(90deg);
2374+
}
2375+
.arnav-btn:after {
2376+
top: 0;
2377+
left: 0;
2378+
opacity: 0;
2379+
width: 100%;
2380+
color: #323237;
2381+
display: block;
2382+
transition: 0.5s;
2383+
position: absolute;
2384+
background: #adadaf;
2385+
content: attr(data-back);
2386+
transform: translateY(-50%) rotateX(90deg);
2387+
}
2388+
.arnav-btn:before {
2389+
top: 0;
2390+
left: 0;
2391+
opacity: 1;
2392+
color: #adadaf;
2393+
display: block;
2394+
padding: 0 30px;
2395+
line-height: 40px;
2396+
transition: 0.5s;
2397+
position: relative;
2398+
background: #323237;
2399+
content: attr(data-front);
2400+
transform: translateY(0) rotateX(0);
2401+
}

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@
608608
</div>
609609
<!-- Gaurav Sharma's btn end-->
610610

611+
<!--0b51d14n217's btn-->
612+
<div class="button-container">
613+
<a class="arnav-btn" data-back="Hover Me" data-front="Hover Me"></a>
614+
<div class="createdby-section">
615+
Created by
616+
<a href="https://github.com/0b51d14n217">Arnav Sharma</a>
617+
</div>
618+
</div>
619+
<!--0b51d14n217's btn-->
620+
611621
</div>
612622

613623
</main>

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