Less repaints

This commit is contained in:
2018-04-20 11:47:24 +02:00
parent 3aabd3003a
commit 1f7e9a3ca8
5 changed files with 20 additions and 8 deletions

View File

@ -2,19 +2,23 @@ mixin anime-mini-item
margin 0.25rem
flex-basis anime-image-small-width
:hover
text-shadow none
mixin anime-generic-item-image
object-fit cover
border-radius 2px
filter none
will-change filter
transition filter transition-speed ease, opacity transition-speed ease
:hover
filter saturate(1.3)
mixin anime-mini-item-image
anime-generic-item-image
width anime-image-small-width !important
height anime-image-small-height !important
anime-generic-item-image
// Make it easier for the browser to layout by specifying max size as well
max-width anime-image-small-width