forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDN Feature Pages for SVGAnimatedBoolean (mdn#37069)
* MDN Feature Pages for SVGAnimatedBoolean * fix: consistency with other pages * fix: see also section with better links * fix: example * Update files/en-us/web/api/svganimatedboolean/animval/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Update files/en-us/web/api/svganimatedboolean/baseval/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * fix: lint * fix: grammatical mistake --------- Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
- Loading branch information
1 parent
2ec170b
commit 53fd7ea
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: "SVGAnimatedBoolean: animVal property" | ||
short-title: animVal | ||
slug: Web/API/SVGAnimatedBoolean/animVal | ||
page-type: web-api-instance-property | ||
browser-compat: api.SVGAnimatedBoolean.animVal | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
The **`animVal`** read-only property of the {{domxref("SVGAnimatedBoolean")}} interface represents the current animated value of the associated animatable boolean SVG attribute. If the attribute is not animated, `animVal` is the same as {{domxref("SVGAnimatedBoolean.baseVal")}}. | ||
|
||
Some boolean SVG attributes, such as [`preserveAlpha`](/en-US/docs/Web/SVG/Attribute/preserveAlpha), are animatable. In such cases, `SVGAnimatedBoolean.animVal` property is `true` when the attribute value resolves to true. Otherwise, the value is `false`. | ||
|
||
## Value | ||
|
||
A boolean; the value of the animatable boolean attribute. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("SVGElement")}} | ||
- {{domxref("SVGAnimationElement")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: "SVGAnimatedBoolean: baseVal property" | ||
short-title: baseVal | ||
slug: Web/API/SVGAnimatedBoolean/baseVal | ||
page-type: web-api-instance-property | ||
browser-compat: api.SVGAnimatedBoolean.baseVal | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
The **`baseVal`** property of the {{domxref("SVGAnimatedBoolean")}} interface is the value of the associated animatable boolean SVG attribute in its base (none-animated) state. It reflects the value of the associated animatable boolean attribute when no animations are applied. | ||
|
||
Some boolean SVG attributes, such as [`preserveAlpha`](/en-US/docs/Web/SVG/Attribute/preserveAlpha), are animatable. In such cases, `SVGAnimatedBoolean.baseVal` property is `false` when the attribute is set to `false`, is omitted and defaults to `false`, or is inheritable and inherits `false`. Otherwise, the value is `true`. | ||
|
||
## Value | ||
|
||
A boolean; the base value of the reflected attribute. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("SVGElement")}} | ||
- {{domxref("SVGAnimationElement")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters