aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/performance/css_javascript_animation_performance
diff options
context:
space:
mode:
authorAlexey Pyltsyn <lex61rus@gmail.com>2021-03-25 01:13:29 +0300
committerGitHub <noreply@github.com>2021-03-25 01:13:29 +0300
commitf7f5454b72bd74808d1a9cf8cbaf69d8d0b378b9 (patch)
treed371d06cc1187b568c3b31bea3f8c4b65f22ff4f /files/ru/web/performance/css_javascript_animation_performance
parentb7001d616903bbb2a9e8099757a4ff0b103539c3 (diff)
downloadtranslated-content-f7f5454b72bd74808d1a9cf8cbaf69d8d0b378b9.tar.gz
translated-content-f7f5454b72bd74808d1a9cf8cbaf69d8d0b378b9.tar.bz2
translated-content-f7f5454b72bd74808d1a9cf8cbaf69d8d0b378b9.zip
Unify Russian translation of "notes" (#302)
* Remove all mentions of EmbedTest262ReportResultsTable Part of #297 * Unify Russian translation of "notes" Co-authored-by: Peter Bengtsson <mail@peterbe.com> Co-authored-by: tristantheb <tristantheb@users.noreply.github.com>
Diffstat (limited to 'files/ru/web/performance/css_javascript_animation_performance')
-rw-r--r--files/ru/web/performance/css_javascript_animation_performance/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ru/web/performance/css_javascript_animation_performance/index.html b/files/ru/web/performance/css_javascript_animation_performance/index.html
index 8996f5f957..e00d921f22 100644
--- a/files/ru/web/performance/css_javascript_animation_performance/index.html
+++ b/files/ru/web/performance/css_javascript_animation_performance/index.html
@@ -28,7 +28,7 @@ translation_of: Web/Performance/CSS_JavaScript_animation_performance
<p>API {{domxref("Window.requestAnimationFrame","requestAnimationFrame()")}} предоставляет эффективный способ создания анимаций в JavaScript. Функция (callback), которую вы передаёте в этот метод, будет вызываться перед каждой следующей отрисовкой нового фрейма. Главное отличие от {{domxref("WindowTimers.setTimeout","setTimeout()")}}/{{domxref("WindowTimers.setInterval","setInterval()")}} в том, что здесь вам не нужно указывать время, через которое функция запустится. <code>requestAnimationFrame()</code> работает гораздо эффективнее, учитывая частоту кадров и производительность системы. Разработчики могут создавать  анимацию, просто изменяя стили элемента каждый раз, когда происходит подготовка нового кадра (или когда обновляется полотно Canvas или в других случаях).</p>
<div class="note">
-<p><strong>Заметка</strong>: Подобно CSS transition и animation, <code>requestAnimationFrame()</code> приостанавливает работу, когда текущий таб переводится в фоновый режим (например, при смене фокуса)</p>
+<p><strong>Примечание</strong>: Подобно CSS transition и animation, <code>requestAnimationFrame()</code> приостанавливает работу, когда текущий таб переводится в фоновый режим (например, при смене фокуса)</p>
</div>
<p>Для подробностей ознакомьтесь с <a href="https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/">анимирование с JavaScript: от setinterval до requestAnimationFrame</a>.</p>