Skip to content

Commit 573f099

Browse files
committed
Nicer ko-fi anim
1 parent bea092a commit 573f099

1 file changed

Lines changed: 43 additions & 43 deletions

File tree

docs/overrides/main.html

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{% extends "base.html" %}
22

33
{% block extrahead %}
4-
<style>
5-
@keyframes kofi-bounce {
6-
0%, 100% { transform: translateY(0); }
7-
30% { transform: translateY(-6px); }
8-
60% { transform: translateY(-3px); }
9-
}
10-
11-
.kofi-btn {
12-
position: fixed;
13-
bottom: 1.5rem;
14-
right: 1.5rem;
15-
z-index: 999;
16-
17-
display: flex;
18-
align-items: center;
19-
justify-content: center;
20-
21-
width: 3rem;
22-
height: 3rem;
23-
border-radius: 50%;
24-
background-color: #f58b73;
25-
text-decoration: none;
26-
}
27-
28-
.kofi-btn:hover {
29-
animation: kofi-bounce 0.4s ease;
30-
}
31-
32-
.kofi-btn img {
33-
width: 1.5rem;
34-
height: 1.5rem;
35-
}
36-
</style>
4+
<style>
5+
@keyframes kofi-wiggle {
6+
from, to { transform: scale(1, 1); }
7+
25% { transform: scale(0.9, 1.1); }
8+
50% { transform: scale(1.1, 0.9); }
9+
75% { transform: scale(0.95, 1.05); }
10+
}
11+
12+
.kofi-btn {
13+
position: fixed;
14+
bottom: 1.5rem;
15+
right: 1.5rem;
16+
z-index: 999;
17+
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
22+
width: 2.7rem;
23+
height: 2.7rem;
24+
border-radius: 50%;
25+
background-color: #f25555;
26+
text-decoration: none;
27+
}
28+
29+
.kofi-btn:hover {
30+
animation: kofi-wiggle 3s ease;
31+
}
32+
33+
.kofi-btn img {
34+
width: 1.5rem;
35+
}
36+
</style>
3737
{% endblock %}
3838

3939
{% block content %}
4040
{{ super() }}
4141

42-
<a
43-
class="kofi-btn"
44-
href="https://ko-fi.com/managarm"
45-
target="_blank"
46-
rel="noopener noreferrer"
47-
aria-label="Buy me a Ko-fi?"
48-
title="Buy me a Ko-fi?"
49-
>
50-
<img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations">
51-
</a>
42+
<a
43+
class="kofi-btn"
44+
href="https://ko-fi.com/managarm"
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
aria-label="Buy me a Ko-fi?"
48+
title="Buy me a Ko-fi?"
49+
>
50+
<img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations">
51+
</a>
5252
{% endblock %}

0 commit comments

Comments
 (0)