Page 1 of 1

svgs vs Lottie files

Posted: Tue Nov 07, 2023 11:16 am
by ggibbon
Hi All

I've just be going through a paniful time
having outputed a large 360 tour, which runs fine on
dekstop, but very slow on mobile devices.
This tour has a lot of animated svg buttons (approx 100+ eeek!)
which after optimising everything else I can (attached images, film, sounds)
its still very slow.
I came across an article which mentioned about animate svg, not being great on mobile devices
and lottie files being a bteer choice.
Would you recommend this.

Thanks
Greg

Re: svgs vs Lottie files

Posted: Wed Nov 08, 2023 2:32 am
by Tony
Hi Greg,

One of the features I love the most about Pano2VR is the ability to use SVG files as they provide the best solution for cross-platform usability and scaling. I looked into creating SVG animations but haven't actually deployed any.

Reading posts online it looks like animated SVG can be quite large while the animated Lottie files are considerably smaller.

As both have the same resolution independent feature I'd go for SVG for static elements and Lottie for the animations.

Here's a sample I built when V7 was in Beta and support for Lotties was announced.

https://p2vr.s3.ap-southeast-2.amazonaw ... index.html

Tony

Re: svgs vs Lottie files

Posted: Wed Nov 08, 2023 9:08 am
by ggibbon
Hi Tony

Thanks for the quick reply.
I'll give this a go and let you know if
it solved my issues.
Thanks
Greg