Skip to content

Commit eee9656

Browse files
chore(readme): fixes (#1845)
* docs: updated the example for clarity * docs: clarified the document even more Co-authored-by: Josh <[email protected]>
1 parent 37e33a3 commit eee9656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ const FadeIn = ({ isVisible, children }) => {
6868
y: isVisible ? 0 : 24
6969
})
7070

71-
return <animated.div>{children}</animated.div>
71+
return <animated.div style={styles}>{children}</animated.div>
7272
}
7373
```
7474

75-
It's as simple as that to create scroll-in animations.
75+
It's as simple as that to create scroll-in animations when value of `isVisible` is toggled.
7676

7777
### 📖 Documentation and Examples
7878

0 commit comments

Comments
 (0)