Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

gsap react

const el = useRef();
const q = gsap.utils.selector(el);

useEffect(() => {
   // Target ALL descendants with the class of .box
  gsap.to(q(".box"), { x: 100 });
}, []);
Source by greensock.com #
 
PREVIOUS NEXT
Tagged: #gsap #react
ADD COMMENT
Topic
Name
8+6 =