📜  gsap 反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.936000             🧑  作者: Mango

代码示例2
function App() {
  // store a reference to the box div
  const boxRef = useRef();

  // wait until DOM has been rendered
  useEffect(() => {
    gsap.to(boxRef.current, { rotation: "+=360" });
  });
  
  // DOM to render
  return 
Hello
; }