| → |
Tags: ,

jQuery Approach works in a very similar manner to jQuery animate, however it animates over distance instead of time. The closer you get to the object, the more the style will be applied.

For example, you could use approach on an element’s opacity – as you get closer to the element, the opacity would increase and further, decrease for vice versa. Check it out!