Approach is a jQuery plugin that allows you to animate style properties based on the cursor’s proximity to an object.
It works in a very similar manner to jQuery animate, however it animates over distance instead of time.
demo/demo2.html files for a demonstration of how jQuery Approach works
or view a live demo.
demo/demo2.html does not work in older versions of IE that don’t support “opacity.”
Which styles you’d like to animate. Accepts the same syntax and properties as jQuery animate. Also, if you have the jQuery UI Core Effects installed,
it will also accept color-based properties. (type=Object, default=None)
Set the minimum radial distance where you’d like the animation to begin (type=integer, default=400)
Include the jQuery library and Approach plugin files in your webpage tag (preferably at the bottom of the page, before the closing BODY tag):
Note: The example above uses the Google hosted version of jQuery; there is also a jQuery source file included with this distribution, if you would like to host it yourself.
Note #2: If you are using color animations, you must also include the jQuery UI Effects Core source code (also included in this distribution).
Please file a ticket on our Github issues tracker.