<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22483</bug_id>
          
          <creation_ts>2013-06-26 17:53:26 +0000</creation_ts>
          <short_desc>Request for keywords representing parabolic cubic-bezier timing functions</short_desc>
          <delta_ts>2013-06-26 17:53:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>FXTF</product>
          <component>Web Animations</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dean Trower">f266704</reporter>
          <assigned_to name="FXTF Web Animation bugs">web-anim-bugs</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89909</commentid>
    <comment_count>0</comment_count>
    <who name="Dean Trower">f266704</who>
    <bug_when>2013-06-26 17:53:26 +0000</bug_when>
    <thetext>At the moment, the Web Animations draft defines only the keywords &quot;linear&quot;, &quot;ease&quot;, &quot;ease-in&quot;, &quot;ease-out&quot; and &quot;ease-in-out&quot; as shortcuts to cubic-bezier(...) timing functions of certain shapes.

I&apos;d like to suggest that a couple more such keywords be added to this list - specifically, for *parabolic* timing functions:  Representing the path objects take either rising, or falling, under gravity.

The reason is that making objects appear to rise, fall, or bounce under gravity is I&apos;d expect a fairly common use-case for CSS animation --- but using any of the ease-* curves to do it will result in wrong-looking (unphysical) behaviour:  Such animations require parabolic timing functions to look correct.

Rising and falling half-parabolas (somewhat similar in shape to ease-out and ease-in respectively) are also representable using cubic bezier curves, specifically (assuming my math is correct):

  rise:    cubic-bezier(0.33333, 0.66667, 0.66667, 1)
  fall:    cubic-bezier(0.33333, 0, 0.66667, 0.33333)

(Note that exact values are really 1/3 for 0.33333 and 2/3 for 0.66667 respectively)

Having keyword shortcuts for these curves (perhaps &quot;parabolic-rise&quot;/&quot;parabolic-fall&quot;, or perhaps &quot;accel&quot;/&quot;decel&quot;?) will facilitate the easy creation of physically-correct rise/fall/bounce animations, and will also make it clear at a glance, from looking at the CSS, just what such animations are supposed to do.  (Which certainly isn&apos;t the case if you use cubic-bezier(...) with numerical arguments instead).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>