Skip to main content
New Participant
April 2, 2023
Answered

Initiate iframe canvas animation on scroll

  • April 2, 2023
  • 1 reply
  • 705 views

I created an SVG illustration in Ilustrator and imported it in Animate. Once I animated it, I tried exporting my illustration animation as a .gif, but no matter how I do it there's way too much pixelation since there's no anti-aliasing. Testing the dithering options hasn't been any help, so I exported it as an HTML canvas for use in an iframe.

 

Now the animation needs to activate on scroll (when it enters the viewport) rather than on load. I'd love some help writing JavaScript to get this running, and I'll post the working code if I figure it out. Thank you!

    This topic has been closed for replies.
    Correct answer dnjen

    To anyone else struggling with Animate's export settings, I solved it by using SVGator instead. The paid version lets you animate on scroll and load the graphic as an SVG (with an iframe). 

    1 reply

    Community Expert
    April 3, 2023

    Copy everything in Illustrator and paste it right into animate instead of exporting. if you choose to keep exporting make sure you have a high dpi like 300 or 600 that will fix the epixelation.

    dnjenAuthor
    New Participant
    April 3, 2023

    Thank you for your response.

     

    It's totally fair to assume I'm using low-quality images and getting poor results, but these are completely vector SVGs. Is Animate unable to do anti-aliasing? I'm so confused about this. Maybe I should try high DPI .png files and see if that looks better. Does copying straight from Illustrator generate different settings?

    dnjenAuthor
    New Participant
    April 21, 2023

    To anyone else struggling with Animate's export settings, I solved it by using SVGator instead. The paid version lets you animate on scroll and load the graphic as an SVG (with an iframe). 


    Note: the SVGator animated SVG can also be loaded with <object> which is more geared toward images. I'm happier with this result than using a large and grainy GIF