duck and books

This commit is contained in:
thinkpad
2026-06-21 18:31:43 +02:00
parent 078bb93a89
commit de7b289b8c
6 changed files with 391 additions and 14 deletions

View File

@@ -21,11 +21,16 @@ const texteSub = "Here you’ll find creative projects and ideas that inspire me
function createTween() {
animation?.kill();
//use the defaults
// gsap.to(".textblock__header", {duration: 1, scrambleText: "THIS IS NEW TEXT"});
animation = gsap.timeline();
animation = gsap.timeline({
scrollTrigger: {
trigger : ".poster",
pin: true,
markers: true,
start : "top top",
end : "+=500"
}
})
animation.to(".textblock__header", {
duration: 1,