Closed ashehzadgec closed 3 years ago
Hi there
It's been more then 2 weeks, can I expect some help?
Hi, I was facing the same issue, here are a few things you might try:
import LocomotiveScroll from 'locomotive-scroll';
const lscroll = new LocomotiveScroll({
el: document.querySelector('#js-scroll'),
smooth: true,
reloadOnContextChange: true,
intertia: .4
});
export {lscroll};
Hope this helps.
Locomotive Scroll issues need to be posted in their own repository. Closing this issue.
Hi there
I am trying to implement HIghway.js in my project but got a problem and any help will be awesome.
1- On first load everything works fine but after transition locomotive scroll and scroll trigger is not updating. I am using "onLeave and Enter" hooks/ renderer to update scroll position and killing scroll trigger instances but it does not seem to work with my current configuration. Although I was able to do the same thing with barba and swup.js but I am stuck with highway.js may be a little different configuration required. Below is the sandbox pen link for better understanding of the problem.
https://codesandbox.io/s/locomotive-scroll-not-working-with-highwayjs-cg0o4?file=/src/index.js:1409-1645
Note: Scrolltrigger is working on first load in my local machine but not in this demo. Same code.
I must be doing something wrong but couldn't figure out what it is. I look forward to get this working with your awesome support.
Regards Shehzad Asif