Angular freeze SVG animation on initial loading screen

前端 未结 1 1843
夕颜
夕颜 2021-01-22 16:39

I want to play an animation when browser is loading scripts and other assets of Angular 5.

For example this SVG animation:



        
相关标签:
1条回答
  • 2021-01-22 16:39

    Browser rendering page as single-threaded. And some of CSS animated properties could be freeze all animation when heavy js-script is executing.

    Here more details about animation rendering.

    If you are using SVG, animate it with <animate /> tag

    0 讨论(0)
提交回复
热议问题