diff options
author | pawelzwronek <pawel.z.wronek@gmail.com> | 2018-03-12 16:48:47 +0100 |
---|---|---|
committer | Wilson Page <wilsonpage@me.com> | 2018-03-12 15:48:47 +0000 |
commit | 5700d4133a9f5ef2c417c4ad9344f0e714144117 (patch) | |
tree | bf40a5612150b41cd4797be6f9ce70c60fb403aa | |
parent | 78d59bb517c65e7bcd125e4b5ac976ba1530531b (diff) | |
download | fastdom-origin/master.zip fastdom-origin/master.tar.gz fastdom-origin/master.tar.bz2 |
Add CSS 'will-change' hint to gain 20% fps boost (#113)HEADorigin/masterorigin/HEADmaster
-rw-r--r-- | examples/animation.html | 2 |
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 { |