myTransition.style( name, func, [ priority ] ) in D3.js
Transition a CSS style to a new value based on data.
Arguments
name | type | description |
---|---|---|
name | String | Name of the CSS property to transition. |
func | Function |
Invoked for each element in the transition selection, passed the current datum and index, with the this context as the current DOM element. The function’s return value is used to set the element’s CSS property value at the end of the transition. A null value will not remove the specified style.
|
priority | String |
[optional]
Either null or the string "important" .
|
- Return Type
- Transition
Description
For more details see https://github.com/mbostock/d3/wiki/Transitions#wiki-style.
See Also
- Transition.style(name,value,[priority])
- Selection.style(name,func,[priority])