Comments (1)
Hi, sorry for the delay. You're likely referring to the page being scrolled down and scrolling to the top while you already see the new page. This is by design and can be adjusted with the Scroll plugin options. In particular, you need to set the animateScroll
to false
for this not being the case. You can adjust the scroll options of the plugin on the go as well, to have the animated scrolling at some times, while not others.
swup.plugins.find(pluginInstance => pluginInstance.name === 'ScrollPlugin').options.animateScroll = false;
Closing as part of the cleanup, but feel free to reopen if you're still having problems.
from scroll-plugin.
Related Issues (14)
- animateScroll doesn't seem to work HOT 6
- Scrolls to incorrect position on Firefox when using anchor link HOT 2
- Feature Idea: more fine-grained options for animateScroll HOT 3
- Feature Idea: Restore overflowing div's scroll position on popstate HOT 14
- Disable smooth scroll for certain links HOT 11
- `swup.scrollTo()` method needs review HOT 4
- Scroll control of elements on page HOT 3
- Add `ignore` option HOT 11
- Emulate `:target` to allow styling anchor element
- Make `shouldResetScrollPosition` work for non-link requests HOT 1
- Back button scroll restoration not working HOT 19
- A11y: allow disabling animated scroll from visit object HOT 1
- Scroll options not applied correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scroll-plugin.