Skip to content
Snippets Groups Projects
Commit 4f3d43cd authored by Maximilian Leo Huber's avatar Maximilian Leo Huber
Browse files

changed trigger zone of anim

parent 22604e4d
No related branches found
No related tags found
No related merge requests found
Pipeline #416322 passed
...@@ -8,7 +8,7 @@ export function HomeAnim() { ...@@ -8,7 +8,7 @@ export function HomeAnim() {
gsap.registerPlugin(ScrollTrigger); gsap.registerPlugin(ScrollTrigger);
gsap.registerPlugin(useGSAP); gsap.registerPlugin(useGSAP);
gsap.registerPlugin(MotionPathPlugin); gsap.registerPlugin(MotionPathPlugin);
const vectorRef = useRef(null); const vectorRef = useRef(null);
useGSAP( useGSAP(
...@@ -24,8 +24,8 @@ export function HomeAnim() { ...@@ -24,8 +24,8 @@ export function HomeAnim() {
scrollTrigger: { scrollTrigger: {
trigger: "svg", trigger: "svg",
scrub: true, scrub: true,
start:"top middle", start:"bottom middle",
end: "bottom middle" end: "+=4000"
} }
}) })
.from(".homeAnimLine", {drawSVG: 0}, 0) .from(".homeAnimLine", {drawSVG: 0}, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment