diff --git a/src/scroll-timeline-css-parser.js b/src/scroll-timeline-css-parser.js index f1fc1ad2..ed6512a3 100644 --- a/src/scroll-timeline-css-parser.js +++ b/src/scroll-timeline-css-parser.js @@ -212,6 +212,10 @@ export class StyleParser { this.saveSourceSelectorToScrollTimeline(rule); this.saveSubjectSelectorToViewTimeline(rule); + if (!hasAnimationTimeline && !hasAnimationName && !hasAnimation) { + return; + } + let timelineNames = []; let animationNames = []; let shouldReplacePart = false;