Browse Source

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.
Tobias Reich 7 years ago
parent
commit
b360d23661
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/styles/_content.scss

+ 4 - 0
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) {