/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/disable-animations.php
18 строк
616 B
Dávid Szabó
Set delay to zero in the reduce-motion mixin and tests (#29762)
17 мар 2021, 09:10
Не верифицирован
17 мар 2021, 09:10
8e25520
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Plugin, Disables the CSS animations * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-disable-animations */ /** * Enqueue CSS stylesheet disabling animations. */ function enqueue_disable_animations_stylesheet() { $custom_css = '* { animation-duration: 0ms !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }'; wp_add_inline_style( 'wp-components', $custom_css ); } add_action( 'admin_enqueue_scripts', 'enqueue_disable_animations_stylesheet' );