Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

aaron4osu's Achievements

  1. So I took your advice, I created a slightly simpler version as an SVG and switched from .to() to .from(). https://codepen.io/aaron4osu/pen/qBxXbVX?editors=1010 when choosing the starting point with .from, rather than identify an x and y coordinate relative to the SVG, can I start all of the marbles from the center of one of the groups inside the SVG by ID? For example, all of the green colored marbles would begin from the center of the #greenDish element and go to their final spot. For example #greenDish gsap.from(".greenMarbless", { opacity: 1, y: -300, x:-400, // center of #greenDish duration: 2.5, ease:"power3.out", stagger: 0.5 });
  2. This is my first try at GSAP... so far seems awesome, but also a bit overwhelming... I'm trying to create the effect of filling a bowl full of marbles from multiple smaller bowls of marbles. So far I created a very simple codepen with 4 bowls of marbles (green, blue, red, purple), two on each side of an empty bowl... each of the 4 marble sections has an image full of a bowl of marbles with 3 marble images positioned absolutely over the image of the bowl of marbles. When the animation starts all the individual marble images slide over the empty bowl. What I'm trying to figure out is how to make it so that one colored bowl at a time, a bunch of the marbles slide onto a section of the empty bowl. After 30 or 40 marbles from the first colored bowl (blue) finish, then 30 to 40 marbles slide over from the next bowl and so on... Ideally, when the animation finishes, it would look like the image on the bottom of the code pen with the full bowl... Even better when the animation is finished the center bowl area will be replaced with the image of the finished bowl via a fade out/in. Any help would be greatly appreciated note: on issue of the main issues is the absolute positioning I used doesn't work on responsive so not if there is a way to dine an area (the empty bowl) so the marbles always no where to go.