Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TweenStatic

Callable

  • TweenStatic<TElement>(elem: TElement, options: EffectsOptions<TElement>, prop: string, end: number, easing?: string, unit?: string): Tween<TElement>
  • see

    ``

    since

    1.8

    Type Parameters

    • TElement

    Parameters

    • elem: TElement
    • options: EffectsOptions<TElement>
    • prop: string
    • end: number
    • Optional easing: string
    • Optional unit: string

    Returns Tween<TElement>

Index

Properties

Properties

propHooks: PropHooks

jQuery.Tween.propHooks[ prop ] is a hook point that replaces jQuery.fx.step[ prop ] (which is being deprecated.) These hooks are used by the tween to get and set values on elements.

see

``

since

1.8

example
jQuery.Tween.propHooks[ property ] = {
get: function( tween ) {
// get tween.prop from tween.elem and return it
},
set: function( tween ) {
// set tween.prop on tween.elem to tween.now + tween.unit
}
}

Generated using TypeDoc