Skip to content

Commit dcc510d

Browse files
committed
Hopefully this fixes anything
1 parent 88fa8a1 commit dcc510d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

homepage.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ gsap.to(scrollProgress, {
12101210
stagger: 0.2,
12111211
opacity: 1,
12121212
duration:4,
1213+
overwrite: 'auto',
12131214
onStart:()=>{
12141215
const source = sfx.createBufferSource();
12151216
source.buffer = buffer3;
@@ -1260,13 +1261,15 @@ gsap.to(scrollProgress, {
12601261

12611262
document.addEventListener('click', handleClick);
12621263

1263-
document.getElementsByClassName('cont-cont')[0].remove()
12641264
}
12651265
})
12661266

12671267
gsap.to('.cont-letters',{
12681268
scale:1,
1269-
duration:5
1269+
duration:5,
1270+
onComplete:()=>{
1271+
document.getElementsByClassName('cont-cont')[0].remove()
1272+
}
12701273
})
12711274
setTimeout(()=>{
12721275
scene = null;

0 commit comments

Comments
 (0)