npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-fullpage-ck

v1.0.2

Published

Lightweight fullpage Svelte component.

Downloads

8

Readme

Svelte-fullpage

Lightweight fullpage Svelte component.

js-standard-style GitHub Workflow Status version npm bundle size npm bundle size license GitHub issues downloads

Makes scrolling pages by sections.

Instalation

npm i svelte-fullpage -D

How to use

To make things clear:

  • <Fullpage> is wrapper of its sections which can be scrolled vertically to navigate between sections
  • <FullpageSection> is section that takes entire viewport and optionally can be scrolled horizontally to navigate between slides
  • <FullpageSlide> analogy of section which is child of section

Quick guide

  1. Include import { Fullpage, FullpageSection, FullpageSlide } from 'svelte-fullpage' into desired page
  2. Make fullpage sections and put them into <Fullpage>, if you need slides, make them too and put them into some <FullpageSection>
  3. If needed, make <FullpageSlide>s and place them inside some <FullpageSection>

Example code

<script>
    import { 
        Fullpage,
        FullpageSection,
        FullpageSlide
    } from 'svelte-fullpage'
</script>

<Fullpage>
    <FullpageSection title="Home">
        ...Your markup here
    </FullpageSection>
    <FullpageSection title="History">
        <FullpageSlide title="1982-1993">
            ...Your markup here
        </FullpageSlide>
        <FullpageSlide title="1993-2006">
            ...Your markup here
        </FullpageSlide>
        <FullpageSlide title="2006-present">
            ...Your markup here
        </FullpageSlide>
    </FullpageSection>
    <FullpageSection title="Present">
        ...Your markup here
    </FullpageSection>
    <FullpageSection title="Future">
        ...Your markup here
    </FullpageSection>
</Fullpage>

If you are not sure how to use this component, take a look at demo site code

Customization

These are options for customizing your fullpage component. In addition to these props feel free to use HTML customization props such as class, style, ....

Fullpage

  • scrollDuration - number default: 750 - Duration of scroll and next scroll timeout in milliseconds
  • pageRoundingThresholdMultiplier - number default: 8 - Number which sets scroll sensitivity, bigger number, less needed scrolling effort. n means user have to make scroll delta 1/n of viewport height/width in order to get to new page.
  • disableDragNavigation - boolean default: false - Disables pointer drag navigation
  • disableArrowsNavigation - boolean default: false - Disables navigation using arrow keys
  • easing - function default: quartOut - Custom easing function which will be applied to scrolling sections and slides

FullpageSection

  • title - string default: sectionIndex - Title of section displayed on hover effect on section indicator
  • disableCentering - string default: false - Disabled flexbox centering of section's content

FullpageSlide

  • title - string default: sectionIndex - Title of slide displayed on hover effect on slide indicator
  • disableCentering - string default: false - Disabled flexbox centering of slide's content

License

It's free

This component is under MIT license.