How to add and remove glow for Raphael element?

前端 未结 5 1432
爱一瞬间的悲伤
爱一瞬间的悲伤 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:55

    This is bizarre behavior. For example (I fiddled with this for quite a few minutes):

    http://jsfiddle.net/FPE6y/

    As far as I can tell, this shouldn't be happening. Possibly a bug. RaphaelJS historically seems to have problems with un-doing things: How do you make an element undragable in Raphael?

    Sorry I can't present a solution except that perhaps the circle is erased and replaced immediately with a new one which never had a glow applied?

    Meanwhile, report the behavior at GitHub if it isn't already there. You can reference my jsFiddle in the report if you want (or fork it and submit your own).

提交回复
热议问题