Open/Close Div - Quadratic

This example opens/closes DIV by animating its height and width via quadratic equation.
Animation Settings:
1. Smoothness80 frames per second
2. Duration800 - runtime in ms
3. RangeDiv height/width=400
4. nth Degree quadratic curve rate of change
5. Output Equationfunction quad(p){return Math.pow(p, nthDegree)}
6. Application Output Div height/width
Quadratic nth Degree:

SVG Source:
Javascript:
OK in:IE11/CH32/FF23