Fix staggerFrom prop syntax in rotatingTextCode.ts

https://github.com/DavidHDev/vue-bits/issues/108
This commit is contained in:
百里飞洋
2025-11-19 02:16:10 +08:00
committed by GitHub
parent 803c1ca454
commit b5147e1bc2

View File

@@ -7,7 +7,7 @@ export const rotatingText = createCodeObject(code, 'TextAnimations/RotatingText'
<RotatingText
:texts="['Vue', 'Bits', 'is', 'Cool!']"
mainClassName="px-2 sm:px-2 md:px-3 bg-green-300 text-black overflow-hidden py-0.5 sm:py-1 md:py-2 justify-center rounded-lg"
:staggerFrom="last"
:staggerFrom="'last'"
:initial="{ y: '100%' }"
:animate="{ y: 0 }"
:exit="{ y: '-120%' }"