Comments (4)
@aziz-boudi4 Sorry for the late reply.
The titles in my nav bar are not being highlighted once I scroll to a specific "Section"
Could you be more specific?
instead of jumping right away to the clicked section, can it instead scroll down and not jump directly to the selected html section ?
No, at least for now. Jumping directory to the selected section is the bahavior of HTML internal link, not by JavaScript.
from react-scrollspy.
@makotot Thanks for replying.
Let's say I have 5 sections, would it be possible to highlight the section's title in my nav bar when I'm in the appropriate section ?
- I am using a sticky div that is fixed to the top of the screen and it contains my nav bar with all the sections titles.
- Is it possible to highlight the title or change its color when the user is seeing the appropriate section.
- Example: If I'm seeing section2 on my screen, can section title become highlighted ?
from react-scrollspy.
@aziz-boudi4
Hmm, could you show me an example code ? or is it public on github ? I cannot reproduce it.
from react-scrollspy.
add the following css:
html { scroll-behavior: smooth; }
from react-scrollspy.
Related Issues (20)
- Supress console warning messages for componentWillMount and componentWillReceiveProps HOT 9
- Even the example doesn't work for me HOT 1
- How to get the element that was clicked on HOT 1
- Component not found HOT 3
- How can i use with nested navbar?
- Wrong throttling implementation HOT 1
- `this.state.targetItems` carries outdated values when `items` prop changes
- How to use the onEvent and offEvent methods
- Type issue
- The scrollspy doesnt select links anymore
- Warning: Using UNSAFE_componentWillReceiveProps in strict mode
- how to get active item HOT 1
- @babel/runtime should be listed as a dependency instead of babel-runtime
- Failed prop type issue HOT 3
- OneOfType issue
- How to use React ScrollSpy with map function
- Not scrolling on Chrome HOT 1
- Is this project dead? HOT 2
- Automatic scroll the list of active item
- Scrollspy issue when using overflow hidden and flexbox
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 react-scrollspy.