A right way to work with <svg> [closed]

99封情书 提交于 2019-12-12 03:44:50

问题


What is a right way to work with SVG if I have full scene in SVG file?

  1. Split scene to many files (e.g. characters, cars, birds, clouds, etc) and then load them up to different elements for each one.
  2. Load whole scene to one element and then animate groups inside scene?

回答1:


It depends how you work. I would imagine that working with others, e.g animators etc, that they would often provide separate files. So it may work out easier that way. I don't think there's a right answer to this one though. If you load it in one go, at least you don't have to work out when various async loads have finished though.



来源:https://stackoverflow.com/questions/37084908/a-right-way-to-work-with-svg

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