dimanche 30 novembre 2014

javascript selecting a custom cursor (svg)


I'm dynamically changing a cursor to a local svg on hover with



$(element).on('mouseover', function () {
$(this).css('cursor', 'url(svgs/pointer.svg) 9 30 auto');
};


Thats working fine but I'd like to select that svg to manipulate its fill color.


Is there any way to do this so I don't have to make a bunch of different svgs with different fills?


Thanks





Aucun commentaire:

Enregistrer un commentaire