Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Newbie

About Dawid

  • Rank
  1. https://codepen.io/breeg554/pen/vYKYbPm here is codepen of this problem. When you open and close menu and next resize window to bigger, the menu starts sticking out. I tried with 'left' as you advised
  2. I tried quickly with 'left' but the effect was the same. Tomorrow I will try to prepare a codepen
  3. Hi, i am just getting to know gsap and i have a little problem :/. I am writting a page in gatsby and made a mobile side menu with gsap but i noticed that when the menu is opened for the first time and closed, after resizing the window, the menu doesn't change its position on the x-axis and starts sticking out. const Header = () => { const [isOpen, setIsOpen] = useState(false) const menuRef = useRef(null) const menuBtn = useRef(null) const tl = useRef() const toggleOpen = () => { setIsOpen(!isOpen) } useEffect(() => { const nav = menuRef.current