I'm trying to use Scrolltrigger and Gsap for the first time by referring to this Demo, Layered Pinning From Bottom - ScrollTrigger (codepen.io)
but it doesn't work at all on my browser.
Look like this in my browser
I loaded libraries from CDN and copied other codes exactly.
What seems to be the matter??
EJS CODE
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Document</title><scripttype="text/javascript"src="https://code.jquery.com/jquery-3.2.0.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/ScrollTrigger.min.js"></script><linkhref="./test.css"rel="stylesheet"><scriptsrc="./test.js"></script></head><body><divid="container"><divclass="description panel blue"><div><h1>Layered pinning from bottom</h1><p>A simple example where overlapping panels reveal from the bottom.</p><divclass="scroll-down">Scroll down<divclass="arrow"></div></div></div></div><sectionclass="panel red"><div>
ONE
</div></section><sectionclass="panel orange"><div>
TWO
</div></section><sectionclass="panel purple">
THREE
</section></div></body></html>
ScrollTrigger doesn't Work
in GSAP
Posted
Hi guys,
I'm trying to use Scrolltrigger and Gsap for the first time by referring to this Demo,
Layered Pinning From Bottom - ScrollTrigger (codepen.io)
but it doesn't work at all on my browser.
Look like this in my browser
I loaded libraries from CDN and copied other codes exactly.
What seems to be the matter??
EJS CODE
CSS CODE
JS CODE
See the Pen BaowPwo by GreenSock (@GreenSock) on CodePen