Mastodon : figer les emoji et avatars animés
Arrête les animations des emoji personnalisés et avatars GIF pour limiter les distractions.
Code à copier
/* Freeze animated custom emoji and avatars on hover */
img.emojione,
img.custom-emoji,
.account__avatar img,
.status__avatar img {
animation: none !important;
}
.account__avatar--animate,
.status__avatar--animate {
background-image: none !important;
}
/* Replace animated GIF avatars with their still version */
.account__avatar-overlay-base img,
.account__avatar img[src*=".gif"],
.status__avatar img[src*=".gif"] {
image-rendering: -webkit-optimize-contrast;
}
Comment utiliser cet exemple
- Copiez le code avec le bouton ci-dessus.
- Installez JustZix (2 minutes) et ouvrez l'extension sur la page cible.
- Ajoutez une nouvelle règle correspondant à cette page.
- Collez le code dans le panneau CSS de la règle et enregistrez — l'effet apparaît aussitôt.
Notez cet exemple
Aucune note — soyez le premier.