Options
All
  • Public
  • Public/Protected
  • All
Menu
see

``

since

1.8

Hierarchy

  • TweenStatic

Callable

  • __call<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: 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