Skip to content

Commit dd9c18f

Browse files
✨ Enhance footer animations for improved visibility and accessibility
1 parent 167ad66 commit dd9c18f

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

resources/views/components/footer.blade.php

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,36 @@ class="text-sm will-change-transform"
187187
class="flex flex-col items-stretch gap-x-20 gap-y-5 px-6 pt-10 lg:flex-row lg:items-start lg:justify-between min-[1060px]:px-0"
188188
>
189189
{{-- Left side --}}
190-
<div class="flex flex-col items-center gap-3.5 lg:items-start">
190+
<div
191+
x-init="
192+
() => {
193+
if (reducedMotion) return
194+
motion.inView($el, (element) => {
195+
motion.animate(
196+
Array.from($el.children),
197+
{
198+
x: [-10, 0],
199+
opacity: [0, 1],
200+
},
201+
{
202+
duration: 0.7,
203+
ease: motion.backOut,
204+
delay: motion.stagger(0.1),
205+
},
206+
)
207+
})
208+
}
209+
"
210+
class="flex flex-col items-center gap-3.5 lg:items-start"
211+
>
191212
{{-- Logo --}}
192-
<x-nav.logo />
213+
<div class="opacity-0 motion-reduce:opacity-100">
214+
<x-nav.logo />
215+
</div>
193216

194217
{{-- Description --}}
195218
<p
196-
class="text-center font-afacad text-lg lg:max-w-[22rem] lg:text-left"
219+
class="text-center font-afacad text-lg opacity-0 motion-reduce:opacity-100 lg:max-w-[22rem] lg:text-left"
197220
>
198221
A collection of tools for rapidly building beautiful TALL stack
199222
applications. It includes a powerful admin panel, dynamic forms,
@@ -221,7 +244,7 @@ class="text-center font-afacad text-lg lg:max-w-[22rem] lg:text-left"
221244
})
222245
}
223246
"
224-
class="flex flex-wrap items-center gap-3.5 text-hurricane"
247+
class="flex flex-wrap items-center gap-3.5 text-hurricane opacity-0 motion-reduce:opacity-100"
225248
>
226249
<div class="opacity-0 motion-reduce:opacity-100">
227250
<a

0 commit comments

Comments
 (0)