javascript - Animate SVG property such as fill color without third-party library -


how can make fill color of svg circle animate once given start (opaque black) given end (transparent/none). should triggered javascript function , animation one-shot lasting few hundred milliseconds. how can dom/css without having draw in third-party library such snap.svg?

so when callback invoked

  • set fill: black
  • transition on period of 200ms fill: none

try <animate> function. here's demo doesn't have external library.

you can trigger animation so answer


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -