So sad that I didn't saw that... BTW Can you please tell me now why this morphing doesn't do anything when i target the morphed version of svg backword...?
switchNavigationWindow is now looking like this..:
switchNavigationWindow = (event) => {
if (this.state.menuOpen) {
MenuTimeline.to(this.MenuCloseIconSVG.current, 0.5, {
morphSVG: this.MenuOpenIconSVG.current
}).to([this.Menu.current, this.MenuBackDiv.current], 1, {
height: '0',
ease: 'power3.inOut',
skewY: 2,
stagger: 0.05,
}, '-= 0.5');
this.setState({menuOpen: !this.state.menuOpen});
}
else {
MenuTimeline.to(this.MenuOpenIconSVG.current, 0.5, {
morphSVG: this.MenuCloseIconSVG.current
}).to([this.MenuBackDiv.current, this.Menu.current], 1, {
height: '100%',
ease: 'power3.inOut',
skewY: -2,
stagger: 0.05,
}, '-= 0.5');
this.setState({menuOpen: !this.state.menuOpen});
}
}