Skip to content

Commit 644dddc

Browse files
Merge pull request #136 from getRicha/wiggle-btn
Added wiggle animation button
2 parents e3f644f + bf2ded1 commit 644dddc

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

buttons/buttons.css

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,6 +2435,50 @@ a:focus-visible {
24352435

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

2438+
2439+
/* getRicha-btn-1 start */
2440+
2441+
.getRicha-btn-1 {
2442+
background-color: #47cf73;
2443+
padding: 7px;
2444+
width: 100px;
2445+
cursor: pointer;
2446+
}
2447+
2448+
.getRicha-btn-1:hover {
2449+
animation: getRicha-btn-1-wiggle 2s infinite;
2450+
}
2451+
2452+
@keyframes getRicha-btn-1-wiggle {
2453+
5%,
2454+
50% {
2455+
transform: scale(1);
2456+
}
2457+
10% {
2458+
transform: scale(1);
2459+
}
2460+
15% {
2461+
transform: scale(1);
2462+
}
2463+
20% {
2464+
transform: scale(1) rotate(-5deg);
2465+
}
2466+
25% {
2467+
transform: scale(1) rotate(5deg);
2468+
}
2469+
30% {
2470+
transform: scale(1) rotate(-3deg);
2471+
}
2472+
35% {
2473+
transform: scale(1) rotate(2deg);
2474+
}
2475+
40% {
2476+
transform: scale(1) rotate(0);
2477+
}
2478+
}
2479+
2480+
/* getRicha-btn-1 end */
2481+
24382482
.arnav-btn-1{
24392483
opacity: 1;
24402484
outline: 0;
@@ -2484,4 +2528,3 @@ a:focus-visible {
24842528
content: attr(data-front);
24852529
transform: translateY(0) rotateX(0);
24862530
}
2487-

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,17 @@
632632
<!-- Gaurav Sharma's btn end-->
633633

634634

635+
<!-- getRicha-btn-1 start -->
636+
<div class="button-container">
637+
<button class="getRicha-btn-1">Hover Me</button>
638+
<div class="createdby-section">
639+
Created by
640+
<a href="https://github.com/getRicha">getRicha</a>
641+
</div>
642+
</div>
643+
<!-- getRicha-btn-1 end -->
644+
645+
635646
<!--0b51d14n217's btn-->
636647
<div class="button-container">
637648
<a class="arnav-btn-1" data-back="Hover Me" data-front="Hover Me"></a>
@@ -642,6 +653,7 @@
642653
</div>
643654
<!--0b51d14n217's btn-->
644655

656+
645657
</div>
646658

647659
</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