Hello all I am new here and to React and GSAP. Trying to learn by building and it is proving challenging.
I have setup my React site using Gatsby and am using something called TransitionLinks which is suppose to be simplifying my page transition life. The example code on their Wiki is here -> https://transitionlink.tylerbarnes.ca/docs/transitionlink/
I copy pasted their example code into my component and see the two pages being added/removed from the dom but my shiny new GSAP function does not seem to be doing anything. Any help getting me going here would be greatly appreciate as I am so new and lost that I don't even know how to debug yet.
Here is what I have so far:
import {TweenLite, CSSPlugin, ScrollToPlugin} from "gsap/all";
render() {
return (
interestingExitAnimation() {
var exiting = document.getElementsByClassName(".tl-wrapper-status--exiting");
TweenLite.to(exiting, 0, {opacity: 1});
}
... in the code ...
<TransitionLink
to="/project/"
exit={{
trigger: ({ exit, node }) => this.interestingExitAnimation(exit, node),
length: 2
}}
entry={{
delay: 0.5
}}
>