Improving Performance
This commit is contained in:
11
public/styles/objects/_box-sizer.scss
Normal file
11
public/styles/objects/_box-sizer.scss
Normal 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 */
|
||||
}
|
@ -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); }
|
||||
|
Reference in New Issue
Block a user