Skip to content

Commit e7cc667

Browse files
committed
Flip the cow with 0.1% probability
1 parent aece9fd commit e7cc667

File tree

1 file changed

+18
-0
lines changed
  • moooodotfarm-backend/src/ports/http/templates

1 file changed

+18
-0
lines changed

moooodotfarm-backend/src/ports/http/templates/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
50% { transform: translateY(-8px); }
2424
}
2525

26+
@keyframes gentle-bob-flipped {
27+
0%, 100% { transform: scaleY(-1) translateY(0); }
28+
50% { transform: scaleY(-1) translateY(-8px); }
29+
}
30+
31+
.cow-hero.flipped {
32+
animation: gentle-bob-flipped 3s ease-in-out infinite;
33+
}
34+
2635
.site-subtitle {
2736
font-size: 1.8rem;
2837
font-weight: 700;
@@ -265,4 +274,13 @@
265274
{% endfor %}
266275
</ul>
267276
</main>
277+
278+
<script>
279+
if (Math.random() < 0.001) {
280+
const cowHero = document.querySelector('.cow-hero');
281+
if (cowHero) {
282+
cowHero.classList.add('flipped');
283+
}
284+
}
285+
</script>
268286
{% endblock %}

0 commit comments

Comments
 (0)