.transfer( options [, complete ] )Returns: jQueryversion added: 1.12
Description: Transfers the outline of an element to another element
-
.transfer( options [, complete ] )
-
optionsType: Object
-
toType: SelectorThe target of the transfer effect.
-
className (default:
null
)Type: StringA class to add to the transfer element, in addition toui-effects-transfer
. -
duration (default:
400
)A string or number determining how long the animation will run. The strings"fast"
and"slow"
can be supplied to indicate durations of 200 and 600 milliseconds, respectively. The number type indicates the duration in milliseconds. -
easing (default:
swing
)Type: StringA string indicating which easing function to use for the transition.
-
-
completeType: Function()A function to call once the animation is complete, called once per matched element.
-
Very useful when trying to visualize interaction between two elements.
The transfer element itself has the class ui-effects-transfer
, and needs to be styled by you, for example by adding a background or border.
Example:
Clicking on the green element transfers to the other.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
|