Skip to content

Commit 21a7d48

Browse files
author
Jan Fischer
committed
docs: add plugin documentation
1 parent 1b70ec4 commit 21a7d48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/docz/src/plugins/GSAP.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ To use them with `react-gsap` you first have to register them.
2424
import { gsap } from 'gsap';
2525
import { TextPlugin } from 'gsap/TextPlugin';
2626

27+
# if your build step doesn't transpile inside node_modules you can try this import:
28+
import { TextPlugin } from 'gsap/dist/TextPlugin';
29+
2730
gsap.registerPlugin(TextPlugin);
2831

2932
### And use it:

0 commit comments

Comments
 (0)