Comments (5)
Affix just seems to make the menu fixed position at a certain scroll point. This is different than zenscroll which makes the scrolling animation smooth. Tocbot has the functionality of affix by using the following options:
// Fixed position class to add to make sidebar fixed after scrolling
// down past the fixedSidebarOffset.
positionFixedClass: 'is-position-fixed',
// fixedSidebarOffset can be any number but by default is set
// to auto which sets the fixedSidebarOffset to the sidebar
// element's offsetTop from the top of the document on init.
fixedSidebarOffset: 'auto',
from tocbot.
Tried that but no luck :)
Also, for the scrolling do I have to include zenscroll as well? Or is it included in tocbot.js?
Hmm seems not https://github.com/tscanlin/tocbot/search?utf8=%E2%9C%93&q=zenscroll&type=
Will have to do that manually :) For a moment the tut had me believe that dependency is merged into tocbot.min.js
from tocbot.
You just need Tocbot. Zenscroll is included.
from tocbot.
Is it ok to close this issue?
from tocbot.
Yes, many thx!
from tocbot.
Related Issues (20)
- How to use for WordPress? HOT 1
- TOC in `.xhtml` has no hierarchal structure (bookmark is flatten). HOT 1
- Is it possible to pass a function to format the links? HOT 1
- How can I let the Headings of tocbot indent to its corresponding position? HOT 4
- A problem occurred while using typescript HOT 9
- Navigation don't scroll to position with cyrillic characters ids HOT 6
- Regarding the description of the options, it is recommended to update HOT 15
- Help with large HTML, strange TocBot behaviour HOT 11
- Unusual issue with .is-active-link when there are multiple tocbots on a page HOT 1
- Overscroll support HOT 3
- the icon should stay original position when toc unfold HOT 6
- is-active-li not set on scroll or click, only on page load HOT 5
- can't work on hexo-theme-landscape HOT 6
- tocbot 4.18.2 is not detecting h3 HOT 3
- How to scroll the page to a title of an article and highlight a title in the directory HOT 1
- skipRendering true throws exception HOT 2
- Using `headingObjectCallback` doesn't modify ID with `createLink`? HOT 3
- hasInnerContainers: false is not working for relative and abosulte container HOT 3
- Can add support collapsed / collapsible callback ? HOT 1
- Feature: Transform to dropdown on mobile 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 tocbot.