distill
distill copied to clipboard
Apply headroom.js to table of contents
Hi @jjallaire,
I'm posting this as an issue to see if any other distill users think this would be a good feature to add. I find that I often wish I could get a glimpse of my table of contents from further down in a distill page, and I wonder if headroom.js could be applied to single articles and articles within websites, where when you scroll up briefly, the TOC appears for a moment.
Here are my two most recent use cases:
https://apreshill.github.io/knitterverse/index.html#sample-plot
https://apreshill.github.io/tweetable-rmd/
This would be fantastic, I love the floating ToC in basic RMarkdown sites, and for most blog posts it would be nice to have the ToC scroll and hide depending on movement.