diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-09-17 20:15:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 20:15:31 +0200 |
commit | 3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f (patch) | |
tree | 09fe8f8a5fae5235b62918e8b7161fd34480b8d0 /files/fr/web/css/transform-origin | |
parent | 3518481e9190f19bbf81741704f45cb3c1761758 (diff) | |
download | translated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.tar.gz translated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.tar.bz2 translated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.zip |
Prepare CSS section for Markdown conversion (#2307)
* Removes summary / seoSummary classes
* Remove div class=hidden and some notranslate
* Remove hidden paragraphs for live sample
* Remove hidden paragraphs for live sample - take 2
* Remove other hidden div and p - updated w/ en-US when necessary
* Remove ids
* Remove notranslate class
* Fix typo which broke build
* remove div class='index'
* remove useless <span style=...>
* remove non typographical sups
* remove non typographical subs
* remove blockindicator and fix some div.note
* fix build :/
* remove useless classes
* fix build - again :x
* fix unhandled elements 1/N + embedlivesample build fail
* fix div.warning
* Fix fixable flaws - hoping to reduce error conversion
* Remove unecessary images (same as en-US)
* fix div notes
* fix warnings
* fix some dl handling
* fix dls
* Fix a bunch of conversion errors
* rm unhandled figures
* Fix other set of issues and revamp easing-function page
* Fix some one-offs conversion errors (incl. deki files)
* fix the rest of one-off conversion issues
* Fix last dl standing
Diffstat (limited to 'files/fr/web/css/transform-origin')
-rw-r--r-- | files/fr/web/css/transform-origin/index.html | 393 |
1 files changed, 151 insertions, 242 deletions
diff --git a/files/fr/web/css/transform-origin/index.html b/files/fr/web/css/transform-origin/index.html index 55f9b309f7..d5c8888145 100644 --- a/files/fr/web/css/transform-origin/index.html +++ b/files/fr/web/css/transform-origin/index.html @@ -16,8 +16,6 @@ translation_of: Web/CSS/transform-origin <div>{{EmbedInteractiveExample("pages/css/transform-origin.html")}}</div> -<p class="hidden">Le code source de cet exemple interactif est disponible dans un dépôt GitHub. Si vous souhaitez contribuez à ces exemples, n'hésitez pas à cloner <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> et à envoyer une <em>pull request</em> !</p> - <p>Par exemple, l'origine par défaut pour la fonction <code>rotate()</code> est le centre de la rotation. Cette propriété est utilisée en :</p> <ol> @@ -152,280 +150,191 @@ transform-origin: unset; <h2 id="Exemples">Exemples</h2> -<p>Voir la page sur <a class="internal" href="/fr/docs/Web/CSS/CSS_Transforms/Utilisation_des_transformations_CSS">l'utilisation des transformations CSS</a> pour des exemples supplémentaires.</p> +<p>Voir la page sur <a href="/fr/docs/Web/CSS/CSS_Transforms/Using_CSS_transforms">l'utilisation des transformations CSS</a> pour des exemples supplémentaires.</p> -<table class="standard-table"> - <tbody> - <tr> - <th>Code</th> - <th>Exemple</th> - </tr> - <tr> - <td> - <p><code>transform: none;</code></p> - </td> - <td> - <div class="hidden" id="transform_none"> - <pre class="brush: html"> -<div class="box1">&nbsp;</div> -</pre> +<h3 id="a_demonstration_of_various_transform_values">Illustrations des différentes valeurs de transform</h3> - <pre class="brush: css"> -.box1 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; +<p>Cet exemple illustre ce que donnent les différentes valeurs de <code>transform-origin</code> pour différentes fonctions de transformation.</p> + +<pre class="brush: html hidden"> +<div class="container"> + +<div class="example"> + <div class="box box1">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> transform: none; -} -</pre> - </div> +</pre> - <p>{{EmbedLiveSample('transform_none', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: rotate(30deg);</code></p> - </td> - <td> - <div class="hidden" id="transform_rotate_only"> - <pre class="brush: html"> -<div class="box2">&nbsp;</div> -</pre> +<div class="example"> + <div class="box box2">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> - <pre class="brush: css"> -.box2 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; +<pre> transform: rotate(30deg); -} -</pre> - </div> +</pre> - <p>{{EmbedLiveSample('transform_rotate_only', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: rotate(30deg);<br> - transform-origin: 0 0;</code></p> - </td> - <td> - <div class="hidden" id="transform_rotate"> - <pre class="brush: html"> -<div class="box3">&nbsp;</div> -</pre> +<div class="example"> + <div class="box box3">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> - <pre class="brush: css"> -.box3 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform-origin: 0 0; +<pre> transform: rotate(30deg); -} -</pre> - </div> +transform-origin: 0 0; +</pre> - <p>{{EmbedLiveSample('transform_rotate', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: rotate(30deg);<br> - transform-origin: 100% 100%;</code></p> - </td> - <td> - <div class="hidden" id="transform_rotate_with_percentage"> - <pre class="brush: html"> -<div class="box4">&nbsp;</div> -</pre> +<div class="example"> + <div class="box box4">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> - <pre class="brush: css"> -.box4 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; +<pre> +transform: rotate(30deg); transform-origin: 100% 100%; +</pre> + +<div class="example"> + <div class="box box5">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> transform: rotate(30deg); -} -</pre> - </div> +transform-origin: -1em -3em; +</pre> - <p>{{EmbedLiveSample('transform_rotate_with_percentage', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: rotate(30deg);<br> - transform-origin: -10em -30em;</code></p> - </td> - <td> - <div class="hidden" id="transform_rotate_with_em"> - <pre class="brush: html"> -<div class="box5">&nbsp;</div> +<div class="example"> + <div class="box box6">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> +transform: scale(1.7); +</pre> + +<div class="example"> + <div class="box box7">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> +transform: scale(1.7); +transform-origin: 0 0; +</pre> + +<div class="example"> + <div class="box box8">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> +transform: scale(1.7); +transform-origin: 100% -30%; +</pre> + +<div class="example"> + <div class="box box9">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> +transform: skewX(50deg); +transform-origin: 100% -30%; +</pre> + +<div class="example"> + <div class="box box10">&nbsp;</div> + <div class="box original">&nbsp;</div> +</div> + +<pre> +transform: skewY(50deg); +transform-origin: 100% -30%; +</pre> + +</div> </pre> - <pre class="brush: css"> -.box5 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform-origin: -10em -30em; -transform: rotate(30deg); +<pre class="brush: css hidden"> +.container { + display: grid; + grid-template-columns: 200px 100px; + gap: 20px; } -</pre> - </div> - <p>{{EmbedLiveSample('transform_rotate_with_em', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: scale(1.9);</code></p> - </td> - <td> - <div class="hidden" id="transform_scale_only"> - <pre class="brush: html"> -<div class="box6">&nbsp;</div> -</pre> +.example { + position: relative; + margin: 0 2em 4em 5em; +} - <pre class="brush: css"> -.box6 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform: scale(1.9); +.box { + display: inline-block; + width: 3em; + height: 3em; + border: solid 1px; + background-color: palegreen; } -</pre> - </div> - <p>{{EmbedLiveSample('transform_scale_only', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: scale(1.9);<br> - transform-origin: 0 0;</code></p> - </td> - <td> - <div class="hidden" id="transform_scale_without_origin"> - <pre class="brush: html"> -<div class="box7">&nbsp;</div> -</pre> +.original { + position: absolute; + left: 0; + opacity: 20%; +} - <pre class="brush: css"> -.box7 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform: scale(1.9); -transform-origin: 0 0; +.box1 { + transform: none; } -</pre> - </div> - <p>{{EmbedLiveSample('transform_scale_without_origin', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: scale(1.9);<br> - transform-origin: 100% -30%;</code></p> - </td> - <td> - <div class="hidden" id="transform_scale"> - <pre class="brush: html"> -<div class="box8">&nbsp;</div> -</pre> +.box2 { + transform: rotate(30deg); +} - <pre class="brush: css"> -.box8 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform: scale(1.9); -transform-origin: 100% -30%; +.box3 { + transform: rotate(30deg); + transform-origin: 0 0; } -</pre> - </div> - <p>{{EmbedLiveSample('transform_scale', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: skewX(50deg);<br> - transform-origin: 100% -30%;</code></p> - </td> - <td> - <div class="hidden" id="transform_skew_x"> - <pre class="brush: html"> -<div class="box9">&nbsp;</div> -</pre> +.box4 { + transform: rotate(30deg); + transform-origin: 100% 100%; +} - <pre class="brush: css"> -.box9 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform: skewX(50deg); -transform-origin: 100% -30%; +.box5 { + transform: rotate(30deg); + transform-origin: -1em -3em; } -</pre> - </div> - <p>{{EmbedLiveSample('transform_skew_x', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - <tr> - <td> - <p><code>transform: skewY(50deg);<br> - transform-origin: 100% -30%;</code></p> - </td> - <td> - <div class="hidden" id="transform_skew_y"> - <pre class="brush: html"> -<div class="box10">&nbsp;</div> -</pre> +.box6 { + transform: scale(1.7); +} + +.box7 { + transform: scale(1.7); + transform-origin: 0 0; +} + +.box8 { + transform: scale(1.7); + transform-origin: 100% -30%; +} + +.box9 { + transform: skewX(50deg); + transform-origin: 100% -30%; +} - <pre class="brush: css"> .box10 { -margin: 0.5em; -width: 3em; -height: 3em; -border: solid 1px; -background-color: palegreen; -transform: skewY(50deg); -transform-origin: 100% -30%; + transform: skewY(50deg); + transform-origin: 100% -30%; } + </pre> - </div> - <p>{{EmbedLiveSample('transform_skew_y', '', '120', '', '', 'no-button') }}</p> - </td> - </tr> - </tbody> -</table> +<p>{{EmbedLiveSample('a_demonstration_of_various_transform_values', '', 1350) }}</p> <h2 id="Spécifications">Spécifications</h2> @@ -455,6 +364,6 @@ transform-origin: 100% -30%; <h2 id="Voir_aussi">Voir aussi</h2> <ul> - <li><a href="/fr/docs/Web/CSS/CSS_Transforms/Utilisation_des_transformations_CSS">Utiliser les transformations CSS</a></li> + <li><a href="/fr/docs/Web/CSS/CSS_Transforms/Using_CSS_transforms">Utiliser les transformations CSS</a></li> <li><a href="https://css-tricks.com/almanac/properties/t/transform-origin/">https://css-tricks.com/almanac/properties/t/transform-origin/</a></li> </ul> |