Sunflair Posted July 25, 2022 Share Posted July 25, 2022 I am building a codepen and I am not sure how to add React as a factor. Is there something in the documentation I am missing how to do this? EDIT: This is what I have. Nothing shows up, so I am not sure I did the React part correct. The error message I get is: See the Pen xxWLaVW by sunflair0 (@sunflair0) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted July 25, 2022 Share Posted July 25, 2022 Hey there! If you're using React you may find CodeSandbox easier to use. Otherwise there's some demos on codesandbox in our article 1 Link to comment Share on other sites More sharing options...
Sunflair Posted July 25, 2022 Author Share Posted July 25, 2022 everything worked fine until I tried to add the CSS rule Take out the ship:after and all works great Link to comment Share on other sites More sharing options...
ankit singh Posted July 26, 2022 Share Posted July 26, 2022 Line 33:146: 'DrawSVGPlugin' is not defined no-undef Line 33:161: 'ScrollSmoother' is not defined no-undef Line 33:177: 'GSDevTools' is not defined no-undef Line 33:189: 'InertiaPlugin' is not defined no-undef Line 33:204: 'MorphSVGPlugin' is not defined no-undef Line 33:220: 'MotionPathHelper' is not defined no-undef Line 33:238: 'Physics2DPlugin' is not defined no-undef Line 33:255: 'PhysicsPropsPlugin' is not defined no-undef Line 33:275: 'ScrambleTextPlugin' is not defined no-undef Line 33:295: 'SplitText' is not defined no-undef Line 33:306: 'CustomBounce' is not defined no-undef Line 33:320: 'CustomWiggle' is not defined no-undef Line 90:181: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 95:19: 'SplitText' is not defined no-undef Line 216:19: 'SplitText' is not defined no-undef Line 314:19: 'SplitText' is not defined no-undef Line 338:11: 'Linear' is not defined no-undef Line 356:11: 'Power1' is not defined no-undef Line 360:11: 'Elastic' is not defined no-undef Line 444:19: 'SplitText' is not defined no-undef Line 545:11: 'Power1' is not defined no-undef Line 553:19: 'SplitText' is not defined no-undef Line 572:11: 'Power1' is not defined 11 hours ago, Cassie said: Hey there! If you're using React you may find CodeSandbox easier to use. Otherwise there's some demos on codesandbox in our article 11 hours ago, Cassie said: Hey there! If you're using React you may find CodeSandbox easier to use. Otherwise there's some demos on codesandbox in our article i buy here gsap club how to resolve this error please tell me someone me 1 Link to comment Share on other sites More sharing options...
Cassie Posted July 26, 2022 Share Posted July 26, 2022 Thanks for joining club GreenSock! Sorry, this sounds frustrating. It sounds like you're trying to use a lot of plugins without loading them maybe? Do you have a demo for us to see? Link to comment Share on other sites More sharing options...
Sunflair Posted July 26, 2022 Author Share Posted July 26, 2022 I have loaded them in the React program. I did what I thought to load them in codepen, but it didn't work. Even the simple JSX didn't work. I put the lll there to see if it would show in the demo window, and that didn't even show. Like I said, it works until I try the CSS rule. I loaded it on my program and did the syntax according to what the documentation said. I searched the internet for the error message, but that didn't help much. Sorry. Link to comment Share on other sites More sharing options...
Sunflair Posted July 26, 2022 Author Share Posted July 26, 2022 I decided to just overlay a div to the object and animate that instead of using the pseudo element. Thank you for all your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now