Comments (4)
I want to know it too
from jquery-smooth-scroll.
Can you show me what you have so far? It sort of depends on which method you're using, but you should be able to pass the options as an object to the first argument. For example:
$('.nav a').smoothScroll({
speed: 600
});
Does that help?
from jquery-smooth-scroll.
No, it is much easier. I thought for a moment and found the answer. It was enough to change the parameter offset:; by a negative number. example:
offset: -125,
from jquery-smooth-scroll.
Yeah, that's right. For offset, you would of course use the offset
option:
$('.nav a').smoothScroll({
offset: -125
});
I'm going to mark this closed for now. @jmfisherr, if this still doesn't answer your question, let me know.
from jquery-smooth-scroll.
Related Issues (20)
- Scroll x pixels HOT 7
- Issue on menu "active" offset position is set HOT 2
- Type Error t is not defined... HOT 3
- console.log in runtime HOT 2
- s.stop() is not a function HOT 4
- Request for scrolling upwards HOT 2
- Scrolling not smooth HOT 1
- scroll to the top of the page
- scroll broken with latest browser upgrades HOT 2
- Using smoothScroll via NPM HOT 5
- Error if id contains Chinese HOT 4
- The issue with the substitute symbol. I can't figure it out. HOT 1
- Improvement suggestion: allow more control over speed Auto (option) formula HOT 2
- Strip smoothScroll from urlPath
- horizontal scroll HOT 1
- How to redirect a new href without opening new tab ? HOT 3
- Easing Functions? HOT 4
- jQuery 3.X deprecation warning HOT 5
- Issue with linking to homepage from inside page HOT 2
- update to bower HOT 2
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 jquery-smooth-scroll.