jQuery.effects.clipToBox( animationProperties )Returns: Objectversion added: 1.12
Description: Calculates position and dimensions based on a clip animation.
-
jQuery.effects.clipToBox( animationProperties )
-
animationPropertiesType: ObjectA set of properties that will eventually be passed to
.animate()
. TheanimationProperties
must contain aclip
property.
-
This method is useful for mimicking a clip animation when using a placeholder for effects. Given a clip animation, jQuery.effects.clipToBox()
will generate an object containing top
, left
, width
, and height
properties which can be passed to .css()
or .animate()
. This method is generally used in conjunction with jQuery.effects.createPlaceholder()
.