Source
static num easeOutInElastic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeOutElastic(ratio) : 0.5 * easeInElastic(ratio - 1.0) + 0.5; }
static num easeOutInElastic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeOutElastic(ratio) : 0.5 * easeInElastic(ratio - 1.0) + 0.5; }