From b360d23661fad0a6f39959b1aa43ad77b35ed51c Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 25 Sep 2016 12:58:31 +0200 Subject: [PATCH] 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. --- src/styles/_content.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/_content.scss b/src/styles/_content.scss index ebbb1a9..5b21654 100644 --- a/src/styles/_content.scss +++ b/src/styles/_content.scss @@ -85,6 +85,10 @@ &:hover img:nth-child(1), &:hover img:nth-child(2) { 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) {