CSS effects

David Granjon

2018-11-09

With shinyEffects, you will be able to customize the style of any elements.

Set shadows and hover effects

Use the setShadow() function as shown below.

Code


Set zoom effect on any elements

Use the setZoom() function as shown below. You can choose the zoom level via the “scale” argument. By default, the zoom is 5% bigger than the original element size ( which is widely enough).

Code


Set pulse effect on any elements

Use the setPulse() function as shown below. You can choose the number of iterations (5 by default), as well as the pulse frequency (1 beat/s by default).

Code


Set shake effect on any elements (on hover)

Use the setShake() function as shown below. You can choose the shake frequency (0.82/s by default).

Code


Combine CSS effects

You can combine all the previous effects according to your needs.