I have done s simple heart using pure CSS.
It consists of two pieces, so one piece has a white box-shadow
, the other one has a red one.
An example can be found here: JsFiddle (it has a simplified styling with no gradients, so it may not look beautiful :)
So, the question is: how to create animated shadows? All I need is to make white and red shadows pulsating to create an effect of heartbeat.
I have followed through some similar questions already, but they won't work, unfortunately, just because in my case I use :after
and :before
pseudo-classes, which can not been manipulated via jQuery.