That's right, I want to apply the effect to the red "0" on my 404 page. The effect is working but not working properly. Because I want to use the code from gsap 1.19 to gsap 3.12.5 version.
In this section (gsap 1.19 version):
bt.addEventListener('click', function(e) {
TweenLite.set(turb, { attr: { x: isFF ? e.offsetX : e.offsetX + 10, y: isFF ? e.offsetY : e.offsetY + 10, width: 0, height: 0 } });
TweenLite.to(turb, 3, { attr: { x: '-=300', y: '-=300', width: 600, height: 600 } });
TweenLite.fromTo(dm, 2, { attr: { scale: 30 } }, { attr: { scale: 0 } });
});
}
To gsap version 3.12.5:
bt.addEventListener('click', function(e) {
gsap.set(turb, { attr: { x: isFF ? e.offsetX : e.offsetX + 10, y: isFF ? e.offsetY : e.offsetY + 10, width: 0, height: 0 } });
gsap.to(turb, 3, { attr: { x: '-=300', y: '-=300', width: 600, height: 600 } });
gsap.fromTo(dm, 2, { attr: { scale: 30 } }, { attr: { scale: 0 } });
});
}