dojox
»
fx
»
easing
» quadInOut
dojox.fx.easing.quadInOut
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,
2
)
/
2
;
}
return
-1
*
(
(
--n
)
*
(
n
-2
)
-
1
)
/
2
;
parameter
type
description
n
Decimal
Optional.