Skip to content
Permalink
Browse files

Add will-change

  • Loading branch information
pakastin committed Jun 19, 2017
1 parent 1207c0a commit ec6a864c67681792101e67107fe93b9ede4dbd1c
Showing with 407 additions and 0 deletions.
  1. +1 −0 css/card.styl
  2. +1 −0 example/example.css
  3. +389 −0 example/example_without_will_change.css
  4. +16 −0 example/without_will_change.html
@@ -9,6 +9,7 @@
border-radius: 4px
box-shadow: 0 1px 1px rgba(#000, .15)
cursor: default
will-change: transform

&:before, &:after
position: absolute
@@ -79,6 +79,7 @@ body {
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.15);
box-shadow: 0 1px 1px rgba(0,0,0,0.15);
cursor: default;
will-change: transform;
}
.card:before,
.card:after {

0 comments on commit ec6a864

Please sign in to comment.
You can’t perform that action at this time.