Skip to content

Commit deeb3ad

Browse files
⚡️ Replace rocket animation with Motion
1 parent fd3c75b commit deeb3ad

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

resources/views/components/home/hero.blade.php

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -660,16 +660,21 @@ class="scale-75 opacity-50"
660660
<svg
661661
x-init="
662662
() => {
663-
gsap.to($el, {
664-
duration: 1.5,
665-
x: 3,
666-
y: 3,
667-
rotate: 2,
668-
scale: 1.02,
669-
ease: 'power1.inOut',
670-
repeat: -1,
671-
yoyo: true,
672-
})
663+
motion.animate(
664+
$el,
665+
{
666+
x: 3,
667+
y: 3,
668+
rotate: -3,
669+
transformPerspective: 600,
670+
},
671+
{
672+
duration: 1.5,
673+
repeat: Infinity,
674+
repeatType: 'mirror',
675+
ease: motion.easeInOut,
676+
},
677+
)
673678
}
674679
"
675680
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)