jQuery.pulsate icon indicating copy to clipboard operation
jQuery.pulsate copied to clipboard

Pulsate leaves some css on the element

Open blackholegalaxy opened this issue 9 years ago • 1 comments

Linked to my previous issue report, i managed to style my button to overpass bootstrap css classes.

But, i discovered another thing.

After having finished to run, you script "leaves" some css style attached to the element:

outline: 0px;
box-shadow: rgba(232, 163, 22, 0) 0px 0px 13px;
outline-offset: 20px;

These lines overpass my own design and make my buttons disappear (by removing offset and shadow).

So my question is :Is there any way for pulsate to LEAVE (or put back) the target element at its initial css state?

I don't know if it can "memorize" the css of my element and then put it back after pulsate have done its business.

blackholegalaxy avatar Dec 09 '15 21:12 blackholegalaxy

After destroying the pulsate element, you can remove the style as well. $('.myclass').pulsate('destroy'); $('.myclass').removeAttr('style');

This works good, unless you are using inline styles in the element.

pa-ra-kram avatar Mar 03 '16 09:03 pa-ra-kram