3 ms·
CSS can move or change the size of an element. You can also write CSS rules that fire when a mouse hovers over an element. You could write a page so that an el
by sbierwagen 7y ago
CSS can move or change the size of an element. You can also write CSS rules that fire when a mouse hovers over an element.
You could write a page so that an element grows until it hits the mouse cursor, shrinks until it's not under the cursor again, then starts growing again... The element boundary will jitter under the cursor, with a frequency determined by animation speed.
Worked example: https://dev.to/linxea/css-flicker-on-hover-5gj5 https://dev.to/linxea/css-flicker-on-hover-5gj5