How to add and remove glow for Raphael element?

前端 未结 5 1416
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-13 20:05

I am trying to set up a hover for a raphael element so that when the mouse is on the element, it has a glow and when the mouse leaves, the glow is removed. I have figured out ho

5条回答
  •  情话喂你
    2021-02-13 20:44

    While Lajarre's answer is definitely the way to go, there is currently a bug in Raphael, causing the remove() method to not only remove the glow element, but also the element to which the glow was applied.

    Why this is still working in Lajarre's fiddle is beyond my comprehension.

    See here for more details about that issue: https://github.com/DmitryBaranovskiy/raphael/issues/508

提交回复
热议问题