Removing animation from Parallax, potential (but unlikely) performance kick, #767
This commit is contained in:
@ -39,7 +39,6 @@ const Parallax = ({
|
||||
className += ` parallax--${fixedHeight ? 'fixed' : 'flexible'}-height`;
|
||||
if (blur && inViewport) className += ' parallax--blur';
|
||||
if (isLoaded) className += ' parallax--loaded';
|
||||
if (animate) className += ' parallax--animate';
|
||||
|
||||
const style = isLoaded && currentUrl ? { backgroundImage: `url("${currentUrl}")` } : {};
|
||||
|
||||
|
||||
@ -39,12 +39,6 @@ $parallax: 'parallax';
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&--animate {
|
||||
.#{$parallax}__image {
|
||||
@include animate(0.5s);
|
||||
}
|
||||
}
|
||||
|
||||
&__overlay {
|
||||
content: '';
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user