diff options
author | julieng <julien.gattelier@gmail.com> | 2021-09-17 20:58:15 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-12 07:57:33 +0200 |
commit | 149319bb8c7b1394a443f0877c3460cd362aa815 (patch) | |
tree | d534abb0cbc87d5e224836e9d6b888aa58564aa0 /files/fr/web/css/scroll-snap-destination/index.html | |
parent | eb9de0363cb273b54d3f5402bbf4e3bc03c60971 (diff) | |
download | translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.gz translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.bz2 translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.zip |
move *.html to *.md
Diffstat (limited to 'files/fr/web/css/scroll-snap-destination/index.html')
-rw-r--r-- | files/fr/web/css/scroll-snap-destination/index.html | 147 |
1 files changed, 0 insertions, 147 deletions
diff --git a/files/fr/web/css/scroll-snap-destination/index.html b/files/fr/web/css/scroll-snap-destination/index.html deleted file mode 100644 index 288e0529c9..0000000000 --- a/files/fr/web/css/scroll-snap-destination/index.html +++ /dev/null @@ -1,147 +0,0 @@ ---- -title: scroll-snap-destination -slug: Web/CSS/scroll-snap-destination -tags: - - CSS - - Déprécié - - Propriété - - Reference -translation_of: Web/CSS/scroll-snap-destination ---- -<div>{{CSSRef}}{{deprecated_header}}</div> - -<p>La propriété <strong><code>scroll-snap-destination</code></strong> définit les coordonnées horizontale et verticale des points d'accroche dans le {{Glossary("viewport")}} du conteneur.</p> - -<pre class="brush: css no-line-numbers">/* Valeur <position> */ -scroll-snap-destination: 400px 600px; - -/* Valeurs globales */ -scroll-snap-destination: inherit; -scroll-snap-destination: initial; -scroll-snap-destination: unset; -</pre> - -<h2 id="Syntaxe">Syntaxe</h2> - -<h3 id="Valeurs">Valeurs</h3> - -<dl> - <dt><code><position></code></dt> - <dd>Définit le décalage entre le bord du viewport du conteneur et le point d'accroche à utiliser lors du défilement. La première valeur indique la coordonnée horizontale et la seconde indique la coordonnée verticale.</dd> -</dl> - -<h3 id="Syntaxe_formelle">Syntaxe formelle</h3> - -{{csssyntax}} - -<h2 id="Exemples">Exemples</h2> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html"><div id="container"> - <div> - <p>Coordonnées (0, 0)</p> - <div class="scrollContainer destination0"> - <div>1</div> - <div>2</div> - <div>3</div> - </div> - </div> - - <div> - <p>Coordonnées (25, 0)</p> - <div class="scrollContainer destination25"> - <div>1</div> - <div>2</div> - <div>3</div> - </div> - </div> - - <div> - <p>Coordonnées (50, 0)</p> - <div class="scrollContainer destination50"> - <div>1</div> - <div>2</div> - <div>3</div> - </div> - </div> -</div> -</pre> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css">#container { - display: flex; -} - -#container > div:nth-child(-n+2) { - margin-right: 20px; -} - -.scrollContainer { - width: 100px; - overflow: auto; - white-space: nowrap; - scroll-snap-points-x: repeat(100%); - scroll-snap-type: mandatory; - scroll-snap-destination: 20px 0; - font-size: 0; -} - -.destination0 { - scroll-snap-destination: 0 0; -} - -.destination25 { - scroll-snap-destination: 25px 0; -} - -.destination50 { - scroll-snap-destination: 50px 0; -} - -.scrollContainer > div { - width: 100px; - height: 100px; - display: inline-block; - line-height: 100px; - text-align: center; - font-size: 50px; -} - -.scrollContainer > div:nth-child(even) { - background-color: #87EA87; -} - -.scrollContainer > div:nth-child(odd) { - background-color: #87CCEA; -}</pre> - -<h3 id="Résultat">Résultat</h3> - -<p>{{EmbedLiveSample("Exemples", "100%", "170")}}</p> - -<h2 id="Spécifications">Spécifications</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Spécification</th> - <th scope="col">État</th> - <th scope="col">Commentaires</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("CSS Scroll Snap Points", "#propdef-scroll-snap-destination", "scroll-snap-destination")}}</td> - <td>{{Spec2("CSS Scroll Snap Points")}}</td> - <td>Définition initiale.</td> - </tr> - </tbody> -</table> - -<p>{{cssinfo}}</p> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("css.properties.scroll-snap-destination")}}</p> |