I'm playing around with GreenSock for the first time. It's really awesome!
I succeed making an open/closed toggle (which I wanted for some time now - but without css). It works really fine
The code for it is currently:
import React, { useRef, useEffect } from 'react'
import { TweenLite } from 'gsap'
export default function Toggle({
value = false,
onClick,
scale = 1,
radius = 16,
length = 120,
borderWidth = 1,
borderColor = '#333',
k