There is a web standard for animated vector images?

删除回忆录丶 提交于 2021-01-29 06:13:01

问题


Assuming that the SVG is the standard for still vector images, there is an equivalent for animated vector-based images too ?

The problem I'm trying to solve can't be solved by pixel-based formats such as APNG or GIF, they don't scale at all on different displays, and they also get really really heavy pretty quick, vector images are what I need but I need a standard way to provide a file with an animated vector entities in it.

To be clear I'm not trying to animate a webpage or part of it, I'm asking for a filetype or standard that is good for just this task.


回答1:


The SVG specification includes SMIL as an animation mechanism. IE9/10/11 do not support SMIL, although other UAs do. There's a javascript library called fakesmile that can enable SMIL on UAs for which support is lacking.

There's also CSS animations which IE does support, although overall support for CSS animations is somewhat less complete in most UAs.




回答2:


You can animate SVG graphics... they don't have to be static. That said, SVG is the only vector graphics format the web supports (natively) so I guess the answer is SVG! ;-)



来源:https://stackoverflow.com/questions/25343476/there-is-a-web-standard-for-animated-vector-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!