@@ -7,6 +7,22 @@ class="mt-5"
7
7
<div class =" flex flex-col gap-5 lg:flex-row" >
8
8
{{-- How does it work --}}
9
9
<div
10
+ x-init ="
11
+ () => {
12
+ motion.inView($el, (element) => {
13
+ gsap.fromTo(
14
+ $el,
15
+ { x: -10, autoAlpha: 0 },
16
+ {
17
+ x: 0,
18
+ autoAlpha: 1,
19
+ duration: 0.7,
20
+ ease: 'power2.out',
21
+ },
22
+ )
23
+ })
24
+ }
25
+ "
10
26
class =" relative flex flex-col items-center gap-5 overflow-hidden rounded-2xl bg-gray-200/60 p-8 sm:flex-row sm:justify-between sm:p-10 lg:max-w-165 xl:shrink-0 dark:bg-mirage"
11
27
>
12
28
{{-- Left side --}}
@@ -242,6 +258,22 @@ class="h-px w-full [background-image:linear-gradient(to_right,currentColor_0_8px
242
258
{{-- Performance --}}
243
259
<div class =" grid items-stretch gap-5 xs:grid-cols-2" >
244
260
<div
261
+ x-init ="
262
+ () => {
263
+ motion.inView($el, (element) => {
264
+ gsap.fromTo(
265
+ $el,
266
+ { y: -10, autoAlpha: 0 },
267
+ {
268
+ y: 0,
269
+ autoAlpha: 1,
270
+ duration: 0.7,
271
+ ease: 'power2.out',
272
+ },
273
+ )
274
+ })
275
+ }
276
+ "
245
277
class =" flex flex-col items-center gap-3 rounded-2xl bg-gradient-to-tl from-[#FEF3C6] to-[#FFFBEB] p-7 2xs:items-start 2xl:gap-4 2xl:p-8 dark:from-mirage dark:to-mirage"
246
278
>
247
279
<x-icons .home.charging-thunder
@@ -263,6 +295,22 @@ class="text-gray-600 2xl:text-lg dark:text-zinc-400"
263
295
</div >
264
296
</div >
265
297
<div
298
+ x-init ="
299
+ () => {
300
+ motion.inView($el, (element) => {
301
+ gsap.fromTo(
302
+ $el,
303
+ { y: 10, autoAlpha: 0 },
304
+ {
305
+ y: 0,
306
+ autoAlpha: 1,
307
+ duration: 0.7,
308
+ ease: 'power2.out',
309
+ },
310
+ )
311
+ })
312
+ }
313
+ "
266
314
class =" flex flex-col items-center gap-3 rounded-2xl bg-gradient-to-tl from-[#ECFCCA] to-[#F7FEE7] p-7 2xs:items-start 2xl:gap-4 2xl:p-8 dark:from-mirage dark:to-mirage"
267
315
>
268
316
<x-icons .home.rocket
@@ -287,6 +335,22 @@ class="text-gray-600 2xl:text-lg dark:text-zinc-400"
287
335
288
336
{{-- Tools --}}
289
337
<div
338
+ x-init ="
339
+ () => {
340
+ motion.inView($el, (element) => {
341
+ gsap.fromTo(
342
+ $el,
343
+ { x: 10, autoAlpha: 0 },
344
+ {
345
+ x: 0,
346
+ autoAlpha: 1,
347
+ duration: 0.7,
348
+ ease: 'power2.out',
349
+ },
350
+ )
351
+ })
352
+ }
353
+ "
290
354
class =" flex flex-col gap-4 rounded-2xl bg-gradient-to-tl from-[#DBDCFB] to-[#F9FAFB] p-7 2xl:p-8 dark:from-mirage dark:to-mirage"
291
355
>
292
356
<div
@@ -341,6 +405,22 @@ class="flex flex-wrap items-start gap-x-2.5 gap-y-3.5 lg:pt-2 2xl:gap-x-3"
341
405
<div class =" mt-5 flex flex-col gap-5 lg:flex-row" >
342
406
{{-- Left side --}}
343
407
<div
408
+ x-init ="
409
+ () => {
410
+ motion.inView($el, (element) => {
411
+ gsap.fromTo(
412
+ $el,
413
+ { x: -10, autoAlpha: 0 },
414
+ {
415
+ x: 0,
416
+ autoAlpha: 1,
417
+ duration: 0.7,
418
+ ease: 'power2.out',
419
+ },
420
+ )
421
+ })
422
+ }
423
+ "
344
424
class =" w-full rounded-2xl bg-gray-200/60 p-8 md:p-10 lg:max-w-md xl:max-w-lg dark:bg-mirage"
345
425
>
346
426
{{-- Header --}}
@@ -412,6 +492,22 @@ class="size-5"
412
492
413
493
{{-- Right side --}}
414
494
<div
495
+ x-init ="
496
+ () => {
497
+ motion.inView($el, (element) => {
498
+ gsap.fromTo(
499
+ $el,
500
+ { x: 10, autoAlpha: 0 },
501
+ {
502
+ x: 0,
503
+ autoAlpha: 1,
504
+ duration: 0.7,
505
+ ease: 'power2.out',
506
+ },
507
+ )
508
+ })
509
+ }
510
+ "
415
511
class =" relative z-0 flex flex-col justify-center gap-4 overflow-hidden rounded-2xl bg-[#F0F2E7] p-7 2xl:p-8 dark:bg-mirage"
416
512
>
417
513
<div
0 commit comments