From b0faeaa7692747c5cd499b6c361e21d6fd3485c2 Mon Sep 17 00:00:00 2001 From: drgoodcat <60068941+drgoodcat@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:26:26 +0200 Subject: [PATCH] delete hand.js --- src/components/Hand.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/components/Hand.js diff --git a/src/components/Hand.js b/src/components/Hand.js deleted file mode 100644 index 83e08d5..0000000 --- a/src/components/Hand.js +++ /dev/null @@ -1,25 +0,0 @@ -function HoldingPlant() { - return ( - const wrapper = useRef(null); - - useEffect(() => { - const [elements] = wrapper.current.children; - - const plant = elements.getElementById("plant"); - const hand = elements.getElementById("hand"); - - gsap.set([plant, hand], { autoAlpha: 0 }); - - const tl = gsap.timeline({ defaults: { ease: "power3.inOut" } }); - - tl.fromTo(hand, { x: "-=300" }, { duration: 1, x: "+=300", autoAlpha: 1 }); - tl.fromTo(plant, { y: "+=10" }, { duration: 1, y: "-=10", autoAlpha: 1 }); - }); - - return ( -
- -
- ); - ); -} \ No newline at end of file