You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abstract: Motion paths allow authors to animate any graphical object along an author specified path.
11
12
</pre>
12
13
@@ -60,7 +61,7 @@ Media: visual
60
61
Animatable: no
61
62
</pre>
62
63
63
-
Specifies the <a>motion path</a> the element gets positioned at. The exact element's position on the motion path is determined by the 'motion-position' property. A <dfn>motion path</dfn> is either a specified path with one or multiple sub-paths or the geometry of a not styled basic shape. Each shape or path must define an <dfn>initial position</dfn> for the computed value of "0" for 'motion-position' and an <dfn>initial direction</dfn> which specifies the rotation of the object on the initial position.
64
+
Specifies the <a>motion path</a> the element gets positioned at. The exact element's position on the motion path is determined by the 'motion-offset' property. A <dfn>motion path</dfn> is either a specified path with one or multiple sub-paths or the geometry of a not styled basic shape. Each shape or path must define an <dfn>initial position</dfn> for the computed value of "0" for 'motion-offset' and an <dfn>initial direction</dfn> which specifies the rotation of the object on the initial position.
64
65
65
66
In this specification a direction (or rotation) of 0 degree is equivalent to the direction of the positive x-axis in the object's <a>local coordinate system</a>. E.g a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.
66
67
@@ -103,10 +104,10 @@ For SVG elements without associated CSS layout box, the <a>used value</a> for <a
103
104
104
105
For elements with associated CSS layout box, the <a>used value</a> for <a value for=clip-path>fill-box</a>, <a value for=clip-path>stroke-box</a> and <a value for=clip-path>view-box</a> is <a value for=mask-clip>border-box</a>.
105
106
106
-
<h3 id="motion-position">Position on motion path: The 'motion-position' property</h3>
107
+
<h3 id="motion-offset">Position on motion path: The 'motion-offset' property</h3>
107
108
108
109
<pre class='propdef'>
109
-
Name: motion-position
110
+
Name: motion-offset
110
111
Value: <<length>> | <<percentage>>
111
112
Initial: 0
112
113
Applies to: All elements. In SVG, it applies to <a href="">container elements</a> excluding the <a href="">defs</a> element and all <a href="">graphics elements</a>
@@ -119,9 +120,7 @@ Animatable: yes
119
120
120
121
A distance that describes the position along the specified <a>motion path</a>.
121
122
122
-
ISSUE: Should the property be renamed to motion-distance or motion-progress instead? After all, the author defines a distance and not a point, even though the result will be an element positioned at the distance on the motion path.
123
-
124
-
<dl dfn-for="motion-position" dfn-type="value">
123
+
<dl dfn-for="motion-offset" dfn-type="value">
125
124
<dt><<percentage>></dt>
126
125
<dt><<length>></dt>
127
126
<dd>The distance from the <a>initial position</a> of the shape or path to the position of the element. Percentages are relative to the total path length including all sub-paths.</dd>
@@ -158,10 +157,10 @@ Values have the following meanings:
158
157
159
158
<dl dfn-for="mask-rotation" dfn-type="value">
160
159
<dt><dfn>auto</dfn></dt>
161
-
<dd>Indicates that the object is rotated (over time if 'motion-position' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>motion path</a>. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''auto''.</dd>
160
+
<dd>Indicates that the object is rotated (over time if 'motion-offset' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>motion path</a>. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''auto''.</dd>
162
161
<dt><dfn>reverse</dfn></dt>
163
162
<dd>
164
-
<p>Indicates that the object is rotated (over time if 'motion-position' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>motion path</a> plus 180 degrees. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''reverse''.
163
+
<p>Indicates that the object is rotated (over time if 'motion-offset' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>motion path</a> plus 180 degrees. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''reverse''.
165
164
<p class="note">This is the same as specifying ''auto 180deg''.
166
165
</dd>
167
166
<dt><<angle>></dt>
@@ -201,7 +200,7 @@ See the section <a href="#motion-processing">“Motion processing”</a> for how
Applies to: All elements. In SVG, it applies to <a href="">container elements</a> excluding the <a href="">defs</a> element and all <a href="">graphics elements</a>
207
206
Inherited: no
@@ -211,7 +210,7 @@ Media: visual
211
210
Animatable: see individual properties
212
211
</pre>
213
212
214
-
This is a shorthand property for setting 'motion-path', 'motion-position' and 'motion-rotation'. Omitted values are set to their initial values.
213
+
This is a shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'. Omitted values are set to their initial values.
215
214
216
215
<h3 id="motion-processing">Motion processing</h3>
217
216
@@ -221,7 +220,7 @@ This is a shorthand property for setting 'motion-path', 'motion-position' and 'm
221
220
<ol>
222
221
<li>Let <var>path</var> be the geometry of the specified basic shape, path or SVG <a href="">graphics element</a> reference.</li>
223
222
<li>Let <var>totalLength</var> be the total length of <var>path</var> with all sub-paths.</li>
224
-
<li>Let <var>distance</var> be the compute value of 'motion-position':
223
+
<li>Let <var>distance</var> be the compute value of 'motion-offset':
0 commit comments