gatsby-plugin-fixhash

0.0.4 • Public • Published

Fixhash

fixes the hash scroll-to function that is a known issue with reach router

Install

yarn add gatsby-plugin-fixhash

Use

in gatsby-config.js

plugins: [
  {
    resolve: `gatsby-plugin-fixhash`,
    options: {
      offsetY: 20 // number, optional offset
      scrollToOptions : {
        // see: https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions
        behavior: `smooth`
      }
    }
  }
];

Package Sidebar

Install

npm i gatsby-plugin-fixhash

Weekly Downloads

19

Version

0.0.4

License

MIT

Unpacked Size

1.81 kB

Total Files

4

Last publish

Collaborators

  • grantglidewell