Skip to content

Commit 82350b3

Browse files
authored
Merge pull request #4 from DRincs-Productions/2-when-markdown-contains-some-html-elements-like-img-or-ul-then-the-visible-animation-state-wont-work-for-them
Fix markdownComponents to correctly spread characterVariants.visible …
2 parents 6452d95 + 5f73637 commit 82350b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/markdownComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function markdownComponents({
1717
const sentenceVariants = {
1818
hidden: characterVariants.hidden,
1919
visible: {
20-
...characterVariants,
20+
...characterVariants.visible,
2121
opacity: 1,
2222
transition: { staggerChildren: delay / 1000 },
2323
},

0 commit comments

Comments
 (0)