duck and books
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user