Skip to content

Commit

Permalink
Update utils.js (#382)
Browse files Browse the repository at this point in the history
Co-authored-by: Aishwarya Mathuria <[email protected]>
  • Loading branch information
suhjainadobe and aishwaryamathuria authored Aug 6, 2024
1 parent 592a61a commit e5c9e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creativecloud/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getDecorateAreaFn() {
import(`${getConfig().codeRoot}/deps/interactive-marquee-changebg/changeBgMarquee.js`);
break;
}
case firstBlock?.classList.contains('marquee'): {
case firstBlock?.classList.contains('marquee') || firstBlock?.classList.contains('hero-marquee'): {
// Load image eagerly for specific breakpoint
const viewport = defineDeviceByScreenSize();
const bgImages = firstBlock.querySelectorAll('div').length > 1 ? firstBlock.querySelector('div') : null;
Expand Down

0 comments on commit e5c9e1a

Please sign in to comment.