Jump to content
Search Community

geedix last won the day on September 30 2023

geedix had the most liked content!

geedix

Premium
  • Posts

    94
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by geedix

  1. Hi @Mishap, this isn't something I would expect GSAP to do, since it's not animation, but it's something I often wish I could accomplish, myself. I use a pen plotter that draws strokes, not fills. How did you go about scripting the conversion of outlined letters into single strokes? Not good enough for your purposes, but maybe good enough for some of mine! 

  2. My last sentence was about keeping file sizes low.  As long as you just have a few words of text, a PNG format text image should be pretty small, even if you've used it at 2x dimensions. For other kinds of images, just experiment with using large dimensions (600x500 in a 300x250 banner), but add more compression, and you can get a sharper look at a similar file size. Make sense? 

  3. Hi Jason, I do lots of SVG  animation, and this is a point of frustration for me too. My usual process is to do make assets in Illustrator, animate with gsap, and fine-tune positions in Chrome dev tools along with the gsap dev tools for pause and play. 

     

    It's hard to understand why Adobe doesn't make Animate useful for this. You can export individual svg frames with 'export image (legacy)', but they are not pretty to see in a code editor. I prefer to stick with Illustrator and lots of layers.

    I hope you get some helpful responses! 

  4. Thanks for the reply, GSAP Helper. I may not have phrased my question well, and this forum is probably the wrong place for it anyway since I don't think it's really a gsap problem. My animation always plays correctly locally, and I'm sure it would play fine on codePen until I added all the server junk like Vue, AEM, jQuery, Angular, FBevents etc . I guess I was hoping for something like, "just listen for the first contentfulPaint event instead of the load event" but I don't think there is such an event. It must be a problem that others smarter than myself have encountered: how to make sure the SVG is being displayed before starting the animation? 

    For now, I've added a slight delay between the load event and the timeline play command, as a compromise. 

  5. I build a lot of long timeline SVG animations, like this one from last month, for example: 
    https://www.pwc.com/us/en/industries/consumer-markets/library/2023-holiday-outlook-trends.html

    There's often an unpredictable delay (2 or 3 seconds) before my animation appears. Meanwhile, it's playing while hidden. I've tried adding a listener for the window "load" event before playing, but there seems to be other business happening between the load and display... Vue and Adobe AEM and who knows what else on the server side. Probably not a GSAP problem, but I wonder what else I can do to ensure that my timeline waits until it's visible before playing? Any advice? thanks

    See the Pen by (@) on CodePen

  6. Hi Ferrari, DrawSVG is for animating SVG strokes, but your artwork uses only fills, not strokes.

    To get a similar reveal effect with this art, you could use masks instead .

    Or, you could recreate your art using strokes instead of fills in order to use DrawSVG.

     

    • Like 3
  7. I actually came across Carl's helpful seamless looping staggers via this old thread:

    I had fewer glitches once I started syncing my loops accurately. In the end, I ditched my hand-drawn frame-by-frame animated smoke and went with a pile of circles that float up to randomized locations for a cleaner looking smoke on this project.

     

     

    • Like 1
  8. Watching my above example for a while, I notice that it's a little inconsistent. On some loops, background frames occasionally show when they shouldn't, or there's an instant with no frame showing. Maybe the playhead doesn't always hit the tick at exactly the right time to sync things up the way I have it written.

    A spritesheet is foolproof because it's only in one position at a time. Is there a way to make my approach with autoAlpha foolproof? So that one frame is always showing, and the others always hidden?

  9. My example works fine: I have several frames in SVG that are animated using a 0 duration tween with a .12 stagger.

    However, I have a larger project where the same method isn't going so well. On and off states get out of sync upon repeat, there are overlapping visible frames and it's not as simple as I had hoped.

     

    Frame-by-frame animation must be a common thing to do. The examples I've found are changing the x position of a spritesheet rather than the visibility of an SVG group.  Is there a smarter way to animate SVG frames?  Maybe the method I'm using is good, and I just need to spend more time debugging my bigger project? thanks

     

    See the Pen OJrQNqa by geedix (@geedix) on CodePen

  10. I don't know, you could just call the concept "falling cubes". 

    You could get close with some randomized gsap tweens using a "bounce.out" ease.

    I would also look into the gsap Physics2d plugin: https://greensock.com/docs/v3/Plugins/Physics2DPlugin  You would have to figure out your own collision detection, though. There are other libraries for that, but I haven't tried them. https://brm.io/matter-js/ looks fun. Good luck!

     

     

  11. Hi Sean! I also came from print long ago. I led the banner development team at a big agency for several years. After Flash died, we did HTML banners with GSAP, but the demand for that work declined. The banners we did became more templated and data-driven and it was hard to squeeze any fun animation in. 

    I agree that the market for freelance banner developers is declining. The ad dollars go more to social media and search. I have a friend that specializes in Google Dynamic Ads, and apparently I'm not the only one who couldn't find work doing those even after learning their complicated platform. 

    I think your site looks good and professional. You might want to expand your focus beyond ad banners. I was fortunate to find non-banner work specializing in SVG animation with GSAP. I wouldn't recommend spending too much time on Animate CC or GWD unless you're really set on staying with banners. Stay curious, maybe try React, Svelte, After Effects, 3js. Good luck!
     

    • Like 4
  12. It's a fairly complex thing to auto-scroll the ISI and let the user interaction stop it, so good job getting this far. If you go all-in with gsap, instead of setting the _scroller.style.top css to an even pixel (remainOffsetHieght is an integer), then you can tween the _scroller y position, which will use transforms and be smoother. Also, set interval (100) is only 10fps, not very smooth looking. If you do everything with gsap, you won't need setInterval. 

    hope that helps

    • Like 1
×
×
  • Create New...