dojox
»
fx
»
easing
» cubicInOut
dojox.fx.easing.cubicInOut
dojo.require("dojox.fx.easing");
defined in dojox/fx/easing.js
Usage
function (/*
Decimal
?*/ n)
(view source)
n=n
*
2
;
if
(
n
<
1
)
{
return
Math
.
pow
(
n,
3
)
/
2
;
}
n-=
2
;
return
(
Math
.
pow
(
n,
3
)
+
2
)
/
2
;
parameter
type
description
n
Decimal
Optional.