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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -