aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/element/scrollto/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/element/scrollto/index.html
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/element/scrollto/index.html')
-rw-r--r--files/fr/web/api/element/scrollto/index.html78
1 files changed, 0 insertions, 78 deletions
diff --git a/files/fr/web/api/element/scrollto/index.html b/files/fr/web/api/element/scrollto/index.html
deleted file mode 100644
index ba30e5fecb..0000000000
--- a/files/fr/web/api/element/scrollto/index.html
+++ /dev/null
@@ -1,78 +0,0 @@
----
-title: Element.scrollTo()
-slug: Web/API/Element/scrollTo
-tags:
- - API
- - Element
- - Méthode
- - Reference
- - scrollTo
-translation_of: Web/API/Element/scrollTo
----
-<div>{{ APIRef }}</div>
-
-<p>La méthode <code><strong>scrollTo()</strong></code><strong> </strong>de l'interface {{domxref("Element")}} permet de faire défiler le document jusqu'à un jeu de coordonnées particulier.</p>
-
-<h2 id="Syntax">Syntaxe</h2>
-
-<pre class="syntaxbox">element.scrollTo(<em>x-coord</em>, <em>y-coord</em>)
-element.scrollTo(<em>options</em>)
-</pre>
-
-<h3 id="Parameters">Paramètres</h3>
-
-<ul>
- <li><code>x-coord</code> est le pixel le long de l'axe horizontal du document qui doit être affiché en haut à gauche.</li>
- <li><code>y-coord</code> est le pixel le long de l'axe vertical du document qui doit être affiché en haut à gauche.</li>
-</ul>
-
-<p>- ou -</p>
-
-<ul>
- <li><code>options</code> est un dictionnaire de type {{domxref("ScrollToOptions")}}.</li>
-</ul>
-
-<h2 id="Example">Exemples</h2>
-
-<p>En utilisant des coordonnées :</p>
-
-<pre class="brush:js">element.scrollTo(0, 1000);
-</pre>
-
-<p>Ou en utilisant <code>options</code> :</p>
-
-<pre class="brush: js">element.scrollTo({
- top: 100,
- left: 100,
- behavior: 'smooth'
-});</pre>
-
-<h2 id="Specifications">Spécifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{ SpecName('CSSOM View', '#dom-element-scrollto-options-options', 'element.scrollTo()') }}</td>
- <td>{{ Spec2('CSSOM View') }}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilité">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("api.Element.scrollTo")}}</p>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>{{domxref("Element.scrollTop")}}, {{domxref("Element.scrollLeft")}}</li>
- <li>{{domxref("Window.scrollTo()")}}</li>
-</ul>