Svelte Fullpage screenshot

Svelte Fullpage

Author Avatar Theme by Hejtmus
Updated: 7 Mar 2025
70 Stars

Lightweight fullpage component for Svelte.

Overview:

The Svelte-fullpage is a lightweight fullpage Svelte component that allows for scrolling pages by sections. It provides a simple and easy-to-use solution for creating fullpage layouts with vertical navigation between sections and optional horizontal navigation between slides. It offers customization options for scroll duration, scroll sensitivity, navigation controls, easing function, section and slide titles, and more. This component is free to use and is licensed under MIT.

Features:

  • Vertical Scrolling: Allows for scrolling pages by sections.
  • Horizontal Navigation: Sections can be scrolled horizontally to navigate between slides.
  • Easy Integration: Can be easily imported and used in any Svelte project.
  • Customization Options: Provides various options for customizing the appearance and behavior of the fullpage component.
  • Scrolling Controls: Allows for disabling drag navigation and arrow key navigation.
  • Easing Function: Supports custom easing function for smoother scrolling.
  • Section and Slide Titles: Displays section and slide titles on hover.
  • Flexbox Centering: Provides option to disable flexbox centering of section and slide content.

Installation:

To use the Svelte-fullpage component, follow these steps:

  1. Install the package using npm: npm install svelte-fullpage
  2. Import the necessary components in your desired page:
    import { Fullpage, FullpageSection, FullpageSlide } from 'svelte-fullpage';
    
  3. Create fullpage sections and put them inside the <Fullpage> component. If you need slides, create them as well and place them inside <FullpageSection> components.
  4. If needed, create <FullpageSlide> components and place them inside <FullpageSection> components.
  5. Customize the component’s options as per your requirements using the available props.
  6. Use HTML customization props such as class and style for additional customization.

Summary:

The Svelte-fullpage component is a lightweight and easy-to-use solution for creating fullpage layouts with scrolling pages by sections. It offers customization options for scroll behavior, navigation controls, easing function, section and slide titles, and more. With its simple installation process and easy integration into any Svelte project, it provides a convenient way to create visually appealing and interactive fullpage designs.