Smoothing rotation of album #626

Keep the composited layer created by the browser during the animation. Makes the border of the transformed thumb look better.
This commit is contained in:
Tobias Reich 2016-09-25 12:58:31 +02:00
parent e1e3f31839
commit b360d23661

View File

@ -85,6 +85,10 @@
&:hover img:nth-child(1), &:hover img:nth-child(1),
&:hover img:nth-child(2) { &:hover img:nth-child(2) {
opacity: 1; opacity: 1;
// Keep the composited layer created by the browser during the animation.
// Makes the border of the transformed thumb look better.
// See https://github.com/electerious/Lychee/pull/626 for more.
will-change: transform;
} }
&:hover img:nth-child(1) { &:hover img:nth-child(1) {