Restart background SVG animation

后端 未结 7 1935
广开言路
广开言路 2021-01-01 20:20

I have an SVG set as a background image of an element. The first time the element is displayed, the animation plays correctly.

On subsequent displays (e.g. if a dupl

7条回答
  •  迷失自我
    2021-01-01 20:54

    Implementation for luigifab's answer. put some random things at the end of the url parameter, this will force browser to think that the resource is a "new resource". Demo

提交回复
热议问题