Another option is by leveraging existing browser technologies for SVG animations. CSS-based browsers, like Internet Explorer and Firefox, have long been used for displaying SVG-based animations.
The advantage of this is that it’s easy to learn how to add svg to html and animate using these browsers. The disadvantage of CSS-based SVG animation effects is that they can often take longer to load or be visually unpleasant. So this gives us an option of using older browsers. This is a good practice anyway, as not every browser supports all browsers rendering features and it’s very likely that none of them would support your particular needs.
Another important option for making SVG animations user-friendly is to animate on scroll with absolute positioning. This option enables the user to resize the image without resizing the whole page, which allows for an element to be easily positioned above another element or within a parent layout.
It is often the case where a user scrolls horizontally or vertically across a large section of content and the layout of the original image doesn’t allow for easy resizing, in which case using absolute positioning can make things easier.
Finally, there is the ability to animate on scroll using simple transforms. Transforms can take on several forms allowing for complex and visually appealing animations.
To do a simple transform, simply set the transform properties of the element to its scale value, start the transform and after it finishes, change the scale value. For example, an element with a translate3d transform that has been applied to the target element can be made to stretch to fill the entire screen.