Skip to content

Commit ebbfe91

Browse files
Update colorscroll.js
1 parent 476aa8c commit ebbfe91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

colorscroll.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ window.addEventListener("DOMContentLoaded", (event) => {
8585
}
8686
}
8787

88-
let durationSetting = attr(0.4, $("body").attr("colorscroll-speed")),
89-
easeSetting = attr("power1.out", $("body").attr("colorscroll-ease")),
90-
offsetSetting = attr(50, $("body").attr("colorscroll-offset")),
91-
breakpointSetting = attr(0, $("body").attr("colorscroll-breakpoint"));
88+
let durationSetting = attr(0.4, $("#lumos-colors").attr("colorscroll-speed")),
89+
easeSetting = attr("power1.out", $("#lumos-colors").attr("colorscroll-ease")),
90+
offsetSetting = attr(50, $("#lumos-colors").attr("colorscroll-offset")),
91+
breakpointSetting = attr(0, $("#lumos-colors").attr("colorscroll-breakpoint"));
9292
// scrolltrigger code
9393
gsap.registerPlugin(ScrollTrigger);
9494
$("[colorscroll-mode]").each(function () {

0 commit comments

Comments
 (0)