Jump to content
Search Community

celli last won the day on January 3 2016

celli had the most liked content!

celli

Premium
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    1

celli last won the day on January 3 2016

celli had the most liked content!

About celli

Profile Information

  • Location
    New York
  • Interests
    design, problem solving, drawing and painting, making and building things from scratch, code, creative thinking, skateboarding, and bikes

Recent Profile Visitors

8,972 profile views

celli's Achievements

  1. celli

    GSAP Stagger loop

    PointC, I see. As usual great explanations and fantastic demo, thanks a lot for the help 😁
  2. celli

    GSAP Stagger loop

    Thank you PointC ! I see what you mean. As far as calculating the duration of each tween, how would I do that? After I calculate the duration of each tween, then would I change the moment when each new tween starts? I thought if I started each tween right after the previous one ends, then I am basically calculating the time for the previous tween. I think I am missing something, hopefully you can shed the light.
  3. celli

    GSAP Stagger loop

    Hi, I am looping a series of GSAP staggers and I am running into an issue where it seems to flash the content on each new loop, when I increase the stagger amount. Currently in my codePen I have a set to stagger: 0.02 and the loop is not noticeable at all, but when I increase the stagger to 0.2, then you can see when the timeline repeats it produces a flash of content and is not a smooth loop. Maybe it has to do with the way I am referencing my splitTexts or the way I am staggering? I wonder if there is a better way--to avoid this flash of content when it is looping slower?
  4. @Carl yes, thank you. Animating the actual elements within the clipPath does work in Safari. The only issue I see is that I would have multiple elements within each clipPath, and it doesn't look like I can use <g></g> tags to wrap all elements within each clipPath, so I wouldn't be able to animate them together as a unit -- do you know if we can group all clipPath elements in each clipPath in another way?
  5. Hi GSAP! I am animating a clipPath which works perfectly in Chrome, but in Safari and iOS it doesn't seem to animate. The black rectangles will animate on scroll as they get to the top of the viewport. I read about clipPath bugs in webKit Safari from back in 2017-2018, but I didn't think they still exist. I can change clipPaths to masks in the SVG, but larger SVG masks always seem to be much more costly on CPU and tend to slow down my pages. Is there is another way or maybe something I'm missing with GSAP that should animate this in Safari/iOS.
  6. Thanks for the insights. Adding the borderRadius to the timeline will not help. Since you added 2px it might not be as noticeable as 8px, but it doesn't really solve the issue. I think to Rodrigo's point I will just animate the width/height since performance-wise the shadow will be doing more work than the width/height calculations. I was hoping there was something I was missing that could accomplish this while keeping the border radius intact, but I see the issue and no silver bullet. Thanks again guys.
  7. I understand that animating the 'width' or 'height' properties are not performant or recommended vs. using scaleX and scaleY, so I am trying to use scale. The only issue is that while using scale, since my scaling of X and Y s not equal, my border-radius is effected and creates a strange shape. Is there anyway around this, or would it be okay to just animate the 'width' and 'height' in instances like this?
  8. Hi Cassie, Yes awesome. Very nice, thank you.
  9. Hi Jack, You were absolutely correct. I had something else in my project that was causing the issue. I am also animating the elements on window load, and this is what was causing the issue. I updated the codePen with this intro animation. If I mouseenter quickly on the element (before the initial window.load animation ends) then I would run into the issue. I wrapped a setTimeout function (or I could use a callback) on my functions that control the hover effects and that did the trick—but is there a better way using GSAP to accomplish this?
  10. Hi, I have a gsap timeline that seems to stop mid way through the animation when I mouseleave quickly. The point at which it stops seems to be unpredictable in my real project, but it's always when I move my mouse quickly. It doesn't seem to happen much on this codePen, but it does happen pretty often in my project. I tried to set the progress back to 1 and then kill it (as you see in my codePen) but it still doesn't seem to work effectively. I still want it to animate in reverse on mouseleave, but in-case it gets stuck I'd like a way to force it back to the starting position.
  11. This is great PointC and Jack, thank you!
  12. Hi all, I hate to dig this one back up. As I dug deeper into it, I noticed that it seemed to kill all of my scrollSmoothers, not just the ones that I am trying to target. For instance I added two boxes above the images without the class of .smootherReset768 and while those keep their original data-speed attributes (resizing below 768px), the smoothScroller stops working for those elements as well. When I resize the browser to above 768px only the elements with my class .smootherReset768 re-initiate the scrollSmoother behavior. I tried it several different ways, but I was still not able to get my other elements without the target class of .smootherReset768 to retain the scrollSmoother behavior, without removing the t.kill() function.
  13. *** EDIT: Sorry, it does work, I had to add OSUBlake's t.kill() -- I forgot about that ***
  14. I actually notice now that I test my codePen further in live mode, when I resize my browser multiple times, the behavior doesn't seem to stick, the original values seem to remain persistent. I also notice that if I start my browser under 768px wide, the data-speed change doesn't take effect.
  15. thank you guys, this works nicely. And it will work selectively (only for the elements that I'd like it to effect) perfect.
×
×
  • Create New...