salsita / jq-clipthru

89 stars 12 forks source link

jq-clipthru

/build directory contains the latest minified working version that corresponds to the documentation below.

IMPORTANT - You can currently only use the library on elements that are either position: absolute or fixed
This limitation will be made optional in future versions with SVG mask/clipPath masking, but unfortunately SVG masking is a post-process which has serious drawbacks for most cases where you need to interact with the clipped elements.

Options

Example
$('#menu').clipthru({ autoUpdate: true, autoUpdateInterval: 50 })

Public methods

Examples
$('#menu').clipthru('refresh')

jq-clipthru also broadcasts namespaced events on the target element for collisions along with the target element - collisionStart.jq-clipthru collisionEnd.jq-clipthru.