Skip to content

Commit 4665547

Browse files
committed
FIXING GSAP
1 parent 85a498b commit 4665547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
// use a script tag or an external JS file
3232
document.addEventListener("DOMContentLoaded", (event) => {
3333
gsap.registerPlugin(ScrollTrigger,ScrollToPlugin,TextPlugin)
34-
gsap.set({title}, {opacity:0})
35-
gsap.to({title}, {opacity:1, duration:1, ease: "sine.inOut"})
34+
gsap.to({"#title"}, {opacity:0})
35+
gsap.to({"#title"}, {opacity:1, duration:1, ease: "sine.inOut", delay:0})
3636
});
3737

3838
</script>

0 commit comments

Comments
 (0)