Skip to content

Commit 90d46fd

Browse files
🎨 Add entrance animation to prizes list and update prize titles for clarity
1 parent 83e973d commit 90d46fd

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

‎resources/views/laracon-us-2025-competition.blade.php

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,24 @@ class="text-center text-3xl font-extrabold sm:text-4xl"
271271

272272
{{-- List --}}
273273
<div
274+
x-init="
275+
() => {
276+
motion.inView($el, (element) => {
277+
motion.animate(
278+
Array.from($el.children),
279+
{
280+
y: [20, 0],
281+
opacity: [0, 1],
282+
},
283+
{
284+
duration: 1,
285+
ease: motion.backOut,
286+
delay: motion.stagger(0.1),
287+
},
288+
)
289+
})
290+
}
291+
"
274292
class="mt-10 flex flex-col items-center justify-center gap-x-6 gap-y-8 lg:flex-row lg:items-start"
275293
>
276294
<div
@@ -284,7 +302,9 @@ class="group relative isolate flex w-full max-w-75 items-center gap-5 overflow-h
284302
<h5
285303
class="text-2xl leading-relaxed font-semibold text-violet-900 transition duration-300 ease-in-out will-change-transform group-hover:translate-x-0.5 dark:text-violet-400"
286304
>
287-
Laracon Ticket
305+
Laracon
306+
<br />
307+
Ticket
288308
</h5>
289309
{{-- Illustration --}}
290310
<img
@@ -325,7 +345,9 @@ class="group relative isolate flex w-full max-w-75 items-center gap-5 overflow-h
325345
<h5
326346
class="text-2xl leading-relaxed font-semibold text-sky-900 transition duration-300 ease-in-out will-change-transform group-hover:translate-x-0.5 dark:text-sky-300"
327347
>
328-
NativePHP T-Shirt
348+
NativePHP
349+
<br />
350+
T-Shirt
329351
</h5>
330352
{{-- Illustration --}}
331353
<img
@@ -376,7 +398,9 @@ class="group relative isolate flex w-full max-w-75 items-center gap-5 overflow-h
376398
<h5
377399
class="text-2xl leading-relaxed font-semibold text-orange-900 transition duration-300 ease-in-out will-change-transform group-hover:translate-x-0.5 dark:text-orange-400"
378400
>
379-
NativePHP License
401+
NativePHP
402+
<br />
403+
License
380404
</h5>
381405
{{-- Illustration --}}
382406
<img

0 commit comments

Comments
 (0)