D3.js easePolyOut Function
The d3.easePolyOut() function in d3.js is used for reverse exponential easing transition effect to a particular element. If the exponent is not specified then it defaults to three.
Approach: The D3.js transition function will be used for applying different easing effects on a particular element. First of all, create an SVG element and append it to the body of the HTML page, then create a rectangle or any other shape and append it to the SVG. Set some attributes of the applied shape to give it nice color and size and apply d3.transition function followed by ease() function and give the d3.easePolyOut as a parameter to ease function.
Parameter: This function accepts a single parameter as mentioned above and described below.
- t: It is the time that is to be raised to the power of the exponent.
Return Values: This function does not return anything.
Below given are a few examples of the function given above.