@fylgja/hashlink

1.1.1 • Public • Published

Fylgja - Hashlink

NPM version license

The Hashlink is a small utility component, which adds smooth scrolling to the page via CSS

and a scroll offset to any element with a id.

Making it perfect for hashlinks. But also works with Javascript scrollto actions.

Installation

npm install @fylgja/hashlink

Then include the component in to your code via;

@use "@fylgja/hashlink";
// Or via PostCSS import
@import "@fylgja/hashlink";

@layer support

If you need support for @layer, use the following import;

@use "@fylgja/hashlink" with ($hashlink-layer: "utilities");
// Or via native CSS import, also supported by PostCSS import
@import "@fylgja/hashlink" layer("utilities");

How to use

For more information see the hashlink docs on the Fylgja.dev.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    25
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    25
  • 1.1.0
    0
  • 1.0.1
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i @fylgja/hashlink

Homepage

fylgja.dev/

Weekly Downloads

28

Version

1.1.1

License

MIT

Unpacked Size

4.06 kB

Total Files

9

Last publish

Collaborators

  • allrude
  • grimlink