I am using vue3, bootstrap 5, and gsap.
I put cdn in my code and applied bootstrap.
However, gsap’s scroll trigger does not work properly.
It works well if I remove start from scrollrigger.create or bootstrap cdn from index.html
If I comment like this, the scroll trigger works well
ScrollTrigger.create({
// start: '10%',
end: '100%',
onUpdate: (self) => {
self.direction === -1 ? showGoTop.play() : showGoTop.reverse()
}
})
or
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> -->
If the annotation is removed, it does not work again.
After applying the bootstrap, the scroll trigger did not work.
What’s wrong with gsap’s start and end?