Thank you for your reply, i'm not entirely clear on where i'd put kill() or clear()
ive tried adding it before and after the tls like this:
not sure if thats what you mean.. you said before adding new stuff..
switch (this.flag) {
case 0:
this.tl
.to(this.card0.current.firstChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card0.current.lastChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card1.current.firstChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card1.current.lastChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card2.current, 0.7, { y: "-100%" }, "firstSlide");
this.tl.play()
this.tl.kill()
this.flag += 1;
switch (this.flag) {
case 0:
this.tl.kill();
this.tl
.to(this.card0.current.firstChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card0.current.lastChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card1.current.firstChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card1.current.lastChild, 0.7, { y: "-100%" }, "firstSlide")
.to(this.card2.current, 0.7, { y: "-100%" }, "firstSlide");
this.tl.play();
this.flag += 1;