summaryrefslogtreecommitdiffstats
path: root/examples/animation.html
diff options
context:
space:
mode:
authorpawelzwronek <pawel.z.wronek@gmail.com>2018-03-12 16:48:47 +0100
committerWilson Page <wilsonpage@me.com>2018-03-12 15:48:47 +0000
commit5700d4133a9f5ef2c417c4ad9344f0e714144117 (patch)
treebf40a5612150b41cd4797be6f9ce70c60fb403aa /examples/animation.html
parent78d59bb517c65e7bcd125e4b5ac976ba1530531b (diff)
downloadfastdom-master.zip
fastdom-master.tar.gz
fastdom-master.tar.bz2
Add CSS 'will-change' hint to gain 20% fps boost (#113)HEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'examples/animation.html')
-rw-r--r--examples/animation.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/animation.html b/examples/animation.html
index 2dbefd6..3a09499 100644
--- a/examples/animation.html
+++ b/examples/animation.html
@@ -14,6 +14,8 @@
height: 100px;
width: 100px;
position: absolute;
+ /*20% fps boost as described here https://developers.google.com/web/fundamentals/performance/rendering/simplify-paint-complexity-and-reduce-paint-areas/ */
+ will-change: transform;
}
button.active {