Jump to content
Search Community

Fettahaud

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Fettahaud

  1. Hey people. First of all, thank you for this helpful discussion Now, after hours of debugging why scroll trigger markers are changing their positions, I discovered the same thing you all found out, which is because of the search bar that is moving. And I'm a bit surprised it's not been fixed for all that time, I mean at least today, we got a new css value like dvh, svh(https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#lengths), I don't know how scroll trigger works under hood, but I really would like to see this fixed
  2. Hey @mvaneijgen, I've tried your solution on those multiple spheres and it seems that it is not working as expected. I did it in 2 different ways: Here is the first way https://codepen.io/Fettah_Aud/pen/RwvYpBw This is the second way; using a function to generate a tl with a scroll trigger for each sphere https://codepen.io/Fettah_Aud/pen/KKJxZqa
  3. If this is the only possible way, then I think we can make it like box C
  4. Ohh, I thought different thing, however this is what I've made so far https://fettahaud.github.io/Catalyst-animation/ the scrub should work only till the orange sphere
  5. Ohh, thank you man, reversing was a big challenge for me as well. But the animation is hooked with the scroll(I know maybe the video is missing little bit)
  6. Hey @mvaneijgen, I've tried your solution and it is not working in my case(multiple spheres animating into different positions) Actually, this is what I'm trying to achieve, do you have any ideas or advice 👉👈🥲 93e1ad72-07eb-4ec5-814d-71c13cecca83.mp4
  7. Well, I think I reached the border, sir. Thank you for your help
  8. Here is a mini demo, but it is not clear as much as the image above https://codepen.io/Fettah_Aud/full/OJdwjQR
  9. This image explains what I want(I hope it is enough and no need for a Pen). I have a sphere animated from the initial state to the second state(the middle of the screen), at this step, I want to catch the current state to be able to animate to the final state(the bottom of the screen). Is this possible to do using Flip? I've tried to catch the new state once the first animation is completed, but didn't work as well spheres.forEach((sphere, i) => { const state = Flip.getState(sphere, { props: "transform,z-index" }); const sphereParent = spheresParents[i]; sphereParent.appendChild(sphere); const flip = Flip.from(state, { simple: true, duration: 1, onComplete: () => { const newState = Flip.getState(sphere, { props: "transform,z-index" }); spheresFinalParent.appendChild(sphere); const flip2 = Flip.from(newState, { simple: true, duration: 1, }); ScrollTrigger.create({ trigger: ".animation-final", markers: true, start: "top 10%", end: "center 10%", scrub: true, toggleActions: "play none none reverse", animation: flip2, }); }, }); ScrollTrigger.create({ trigger: "#scroll-container", markers: false, start: "50% 10%", end: "100% 10%", scrub: true, toggleActions: "play none none reverse", animation: flip, }); });
×
×
  • Create New...