Hey Cassie,
thx for your offer ... to break things down, so that you really can help needs a bit time ... otherwise as you say it is to difficult do get the problem ...
for now I reduce as much as I can ... I tried ScrollTrigger.refresh() , but it does not change the behavior of the side ... it seems that the trigger do not work correctly after reinstantiate smoother ... all container with the data-speed attribute are moving some pixels up or down ... animations who depends on Scroll Trigger do not work correctly ...
Find attached some js and tho images who show the position of some text before and after closing (reinstantiate and refresh) the modal.
Martin
let smoother;
function smootherSetup() {
smoother = ScrollSmoother.create({
smooth: 2,
effects: true,
smoothTouch: 0.1 ,
normalizeScroll: true,
ignoreMobileResize: true
});
}
function triggerUpdate() {
ScrollTrigger.refresh()
}
smootherSetup();
var myModalEl = document.getElementById('gruenderModal')
myModalEl.addEventListener('show.bs.modal', function (event) {
});
myModalEl.addEventListener('hide.bs.modal', function (event) {
smootherSetup();
triggerUpdate();
});