title: CSS3 transition-timing-function as javascript function
body: <p>I need to create a Javascript-Fallback for CSS3-Animations and try to make it as close as possible to the CSS-Version.
  In CSS3, there are 4 predefined easing-functions:</p>
  
  <ul>
  <li>ease: <code>cubic-bezier(0.25, 0.1, 0.25, 1)</code></li>
  <li>ease-in: <code>cubic-bezier(0.42, 0, 1, 1)</code></li>
  <li>ease-out: <code>cubic-bezier(0, 0, 0.58, 1)</code></li>
  <li>ease-in-out: <code>cubic-bezier(0.42, 0, 0.58, 1)</code></li>
  </ul>
  
  <p>Does anybody know an exact algorythmical equivalent to those easings, that could used in a Javascript function? I know there are alot of easings like Sine, Quad, Expo etc. (see <a href="http://easings.net/" rel="nofollow">http://easings.net/</a>), but they all seem to differ.</p>