Improving Performance

This commit is contained in:
2018-08-13 19:40:34 +10:00
parent 1ee3dee3c3
commit 550cf15e76
9 changed files with 67 additions and 7 deletions

View File

@ -0,0 +1,11 @@
/*
* Box Sizer
* Simple box that acts like a ratio sizer
*
* Version:
* 1.0.0 - 2018/08/10
*/
.o-box-sizer {
width: 100%;
/* padding-bottom will be set my JS */
}

View File

@ -16,6 +16,7 @@ $o-element-scroll-fader--amount: 15%;
.o-element-scroll-fader {
opacity: 0;
transition: all $o-element-scroll-fader--speed $s-animation--ease-out;
will-change: transform;
$amt: $o-element-scroll-fader--amount;//Shorthand
&.from-top { @include t-translate-y(-$amt); }