myTransition.delay( delayCalculator ) in D3.js
Calculate per-element transition delay.
Arguments
name | type | description |
---|---|---|
delayCalculator | Function |
Invoked for each element in the transition selection, passed the element’s datum, index, and with the this context set to the element. The return value is set as the transition delay for the element, in milliseconds.
|
- Return Type
- Transition
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-delay.
See Also
- Transition.delay(delayMS)