Approach – Animate CSS Properties Based On Distance

Approach is a jQuery plugin that allows CSS properties to be animated over distance instead of time. The closer the mouse cursor is to an element, the more intense the style will be applied.

This could be used to change the opacity of single or multiple elements as demonstrated in the examples provided here.

It uses the same styles as jQuery animate and if you have the jQuery UI Effects installed, it will also accept color based properties.

Leave a Reply

Your email address will not be published. Required fields are marked *