Removing animation from Parallax, potential (but unlikely) performance kick, #767

This commit is contained in:
James Barnsley
2021-11-19 17:11:12 +13:00
parent e0b64636d0
commit be34900936
2 changed files with 0 additions and 7 deletions

View File

@ -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}")` } : {};

View File

@ -39,12 +39,6 @@ $parallax: 'parallax';
z-index: 1;
}
&--animate {
.#{$parallax}__image {
@include animate(0.5s);
}
}
&__overlay {
content: '';
display: block;