Skip to content

Commit 491fc99

Browse files
MDN Feature Pages for SVGAnimatedLengthList (#37071)
* MDN Feature Pages for SVGAnimatedLengthList * add: link to content types * fix: see also section with relevant links * fix: content * Update files/en-us/web/api/svganimatedlengthlist/animval/index.md Co-authored-by: Estelle Weyl <[email protected]> * add examples * fix: attributes context * fix: syntax issue * removed extra content * Update files/en-us/web/api/svganimatedlengthlist/animval/index.md Co-authored-by: Estelle Weyl <[email protected]> * content fixes * Update files/en-us/web/api/svganimatedlengthlist/animval/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/svganimatedlengthlist/baseval/index.md Co-authored-by: Estelle Weyl <[email protected]> --------- Co-authored-by: Estelle Weyl <[email protected]>
1 parent 498b20f commit 491fc99

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: "SVGAnimatedLengthList: animVal property"
3+
short-title: animVal
4+
slug: Web/API/SVGAnimatedLengthList/animVal
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGAnimatedLengthList.animVal
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`animVal`** read-only property of the {{domxref("SVGAnimatedLengthList")}} interface represents the animated value of an attribute that accepts a list of [`<length>`](/en-US/docs/Web/SVG/Content_type#length), [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage), or [`<number>`](/en-US/docs/Web/SVG/Content_type#number) values.
12+
13+
Some SVG attributes, like the `x`, `y`, `dx`, and `dy` attributes of the [`<tspan>`](/en-US/docs/Web/SVG/Element/tspan) and [`<text>`](/en-US/docs/Web/SVG/Element/text) elements, accept a list of length, percentages, or numbers as a value. This property provides access to the current animated state of the attribute as a live {{domxref("SVGLengthList")}} object.
14+
15+
## Value
16+
17+
An {{domxref("SVGLengthList")}} object representing the animated value of the attribute.
18+
19+
## Specifications
20+
21+
{{Specifications}}
22+
23+
## Browser compatibility
24+
25+
{{Compat}}
26+
27+
## See also
28+
29+
- [`<length>`](/en-US/docs/Web/SVG/Content_type#length)
30+
- [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage)
31+
- [`<number>`](/en-US/docs/Web/SVG/Content_type#number)
32+
- {{domxref("SVGLengthList")}}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: "SVGAnimatedLengthList: baseVal property"
3+
short-title: baseVal
4+
slug: Web/API/SVGAnimatedLengthList/baseVal
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGAnimatedLengthList.baseVal
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`baseVal`** read-only property of the {{domxref("SVGAnimatedLengthList")}} interface represents the base (non-animated) value of an animatable attribute that accepts a list of [`<length>`](/en-US/docs/Web/SVG/Content_type#length), [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage), or [`<number>`](/en-US/docs/Web/SVG/Content_type#number) values.
12+
13+
Some SVG attributes, like the `x`, `y`, `dx`, and `dy` attributes of the [`<tspan>`](/en-US/docs/Web/SVG/Element/tspan) and [`<text>`](/en-US/docs/Web/SVG/Element/text) elements, accept a list of length, percentages, or numbers as a value. This property reflects the attribute value, in its non-animated state, as a live {{domxref("SVGLengthList")}} object.
14+
15+
## Value
16+
17+
An {{domxref("SVGLengthList")}} object representing the base value of the attribute.
18+
19+
## Specifications
20+
21+
{{Specifications}}
22+
23+
## Browser compatibility
24+
25+
{{Compat}}
26+
27+
## See also
28+
29+
- [`<length>`](/en-US/docs/Web/SVG/Content_type#length)
30+
- [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage)
31+
- [`<number>`](/en-US/docs/Web/SVG/Content_type#number)
32+
- {{domxref("SVGLengthList")}}

files/en-us/web/api/svganimatedlengthlist/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ The `SVGAnimatedLengthList` interface is used for attributes of type {{ domxref(
6262
</thead>
6363
<tbody>
6464
<tr>
65-
<td><code>baseVal</code></td>
65+
<td><code>{{domxref("SVGAnimatedLengthList.baseVal", "baseVal")}}</code></td>
6666
<td>{{ domxref("SVGLengthList") }}</td>
6767
<td>
6868
The base value of the given attribute before applying any animations.
6969
</td>
7070
</tr>
7171
<tr>
72-
<td><code>animVal</code></td>
72+
<td><code>{{domxref("SVGAnimatedLengthList.animVal", "animVal")}}</code></td>
7373
<td>{{ domxref("SVGLengthList") }}</td>
7474
<td>
7575
A read only {{ domxref("SVGLengthList") }} representing the

0 commit comments

Comments
 (0)