diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-11-23 13:42:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 13:42:53 +0100 |
commit | c64852bbea5da39e12f76775e8018b0a56142e03 (patch) | |
tree | 57b89a9fd18f7e7e682c638c80db2cf263f71307 /files/fr/web/css/transform-function/scalex() | |
parent | 4ebead42b03a8b0846acba93ebbffc125cf6295e (diff) | |
download | translated-content-c64852bbea5da39e12f76775e8018b0a56142e03.tar.gz translated-content-c64852bbea5da39e12f76775e8018b0a56142e03.tar.bz2 translated-content-c64852bbea5da39e12f76775e8018b0a56142e03.zip |
Fixes #2805 - update of transform-function pages (#2834)
* fixes #2805, updating scale() vs en-US w/ a few typos
* missing typos
* Update transform-function pages as well: rm cssxref, add compat frontmatter and spec/bcd macros
Diffstat (limited to 'files/fr/web/css/transform-function/scalex()')
-rw-r--r-- | files/fr/web/css/transform-function/scalex()/index.md | 66 |
1 files changed, 31 insertions, 35 deletions
diff --git a/files/fr/web/css/transform-function/scalex()/index.md b/files/fr/web/css/transform-function/scalex()/index.md index 9a1b98907c..f55fd09771 100644 --- a/files/fr/web/css/transform-function/scalex()/index.md +++ b/files/fr/web/css/transform-function/scalex()/index.md @@ -1,12 +1,8 @@ --- title: scaleX() slug: Web/CSS/transform-function/scaleX() -tags: - - CSS - - Fonction - - Reference - - Transformations CSS translation_of: Web/CSS/transform-function/scaleX() +browser-compat: css.types.transform-function.scaleX --- {{CSSRef}} @@ -16,16 +12,18 @@ La fonction **`scaleX()`** permet de modifier l'abscisse de chaque sommet de l'à `scaleX(sx)` est une notation raccourcie équivalente à `scale(sx, 1)` ou à `scale3d(sx, 1, 1)`. -`scaleX(-1)` définit une symétrie axiale par rapport à un axe vertical passant par l'origine du repère (définie grâce à la propriété {{cssxref("transform-origin")}}). +`scaleX(-1)` définit une symétrie axiale par rapport à un axe vertical passant par l'origine du repère (définie grâce à la propriété [`transform-origin`](/fr/docs/Web/CSS/transform-origin)). ## Syntaxe - scaleX(s) +```css +scaleX(s) +``` ### Valeurs - `s` - - : Une valeur de type {{cssxref("<number>")}} qui représente le facteur d'échelle de l'homothétie. + - : Une valeur de type [`<number>`](/fr/docs/Web/CSS/number) qui représente le facteur d'échelle de l'homothétie. <table class="standard-table"> <thead> @@ -98,22 +96,22 @@ La fonction **`scaleX()`** permet de modifier l'abscisse de chaque sommet de l'à #### HTML ```html -<p>toto</p> -<p class="transformation">truc</p> +<div>Normal</div> +<div class="scaled">Mis à l'échelle</div> ``` #### CSS ```css -p { - width: 50px; - height: 50px; - background-color: teal; +div { + width: 80px; + height: 80px; + background-color: skyblue; } -.transformation { - transform: scaleX(2); - background-color: blue; +.scaled { + transform: scaleX(0.6); + background-color: pink; } ``` @@ -126,23 +124,23 @@ p { #### HTML ```html -<p>toto</p> -<p class="transformation">bar</p> +<div>Normal</div> +<div class="scaled">Mis à l'échelle</div> ``` #### CSS ```css -p { - width: 50px; - height: 50px; - background-color: teal; +div { + width: 80px; + height: 80px; + background-color: skyblue; } -.transformation { - transform: scaleX(2); +.scaled { + transform: scaleX(0.6); transform-origin: left; - background-color: blue; + background-color: pink; } ``` @@ -152,18 +150,16 @@ p { ## Spécifications -| Spécification | État | Commentaires | -| ------------------------------------------------------------------------------------------------ | ------------------------------------ | ------------------- | -| {{SpecName("CSS3 Transforms", "#funcdef-transform-scalex", "scaleX()")}} | {{Spec2("CSS3 Transforms")}} | Définition initiale | +{{Specifications}} ## Compatibilité des navigateurs -Voir la page sur le type de donnée [`<transform-function>`](/fr/docs/Web/CSS/transform-function#compatibilité_des_navigateurs) pour les informations de compatibilité associées. +{{Compat}} ## Voir aussi -- [`scaleY()`](</fr/docs/Web/CSS/transform-function/scaleY()>) -- [`scaleZ()`](</fr/docs/Web/CSS/transform-function/scaleZ()>) -- {{cssxref("transform")}} -- {{cssxref("<transform-function>")}} -- {{cssxref("transform-origin")}} +- [`scaleY()`](/fr/docs/Web/CSS/transform-function/scaleY()) +- [`scaleZ()`](/fr/docs/Web/CSS/transform-function/scaleZ()) +- [`transform`](/fr/docs/Web/CSS/transform) +- [`<transform-function>`](/fr/docs/Web/CSS/transform-function) +- [`transform-origin`](/fr/docs/Web/CSS/transform-origin) |