Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
<!-- INCORRECT - not a valid mode value --><mds-pref-animation mode="false"></mds-pref-animation><mds-pref-animation mode="none"></mds-pref-animation>
<!-- CORRECT - use an explicit valid mode --><mds-pref-animation mode="system"></mds-pref-animation><!-- INCORRECT --><mds-pref id="prefs"> <mds-pref-animation></mds-pref-animation></mds-pref>
<script> document.getElementById('prefs').addEventListener('change', handler);</script>
<!-- CORRECT --><script> document.getElementById('prefs').addEventListener('mdsPrefChange', handler);</script>/* INCORRECT - duplicates the component's own logic */html.custom-reduce-motion * { animation: none !important;}<!-- CORRECT - rely on the class the component sets --><!-- The component sets pref-animation-reduce on <html>; target that class in your own CSS if needed -->/* Extend, do not replace */html.pref-animation-reduce .my-widget { transition: none;}