Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphcommerce/framer-scroller

Package Overview
Dependencies
Maintainers
0
Versions
604
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphcommerce/framer-scroller

In short: A React API for [Scroll Snap](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scroll_Snap)

  • 8.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
991
decreased by-13.37%
Maintainers
0
Weekly downloads
 
Created
Source

Framer scroller

In short: A React API for Scroll Snap

Features:

  • Pagination dots
  • Hide scrollbar
  • Prev / next buttons
  • Resize animatable
  • Scrollable on mobile and desktop (if the mouse supports horizontal scrolling)
  • Drag support on desktop (on mobile you just scroll the diff, having the same effect)

Goals:

  • Should use the platforms Scroll Snap features to do the heavy lifting
  • Should be resizable with an animatin without excessive rerenders

Required libraries:

  • Framer motion
  • Reach digital Image for the MotionImageAspect
  • Material UI

Minimal example

import {
  Scroller,
  ScrollerProvider,
  ScrollerDots,
  ScrollerButton,
} from '@graphcommerce/framer-scroller'

function MyScroller() {
  return (
    <ScrollerProvider>
      <Scroller>
        <div style={{ height: 400 }}>item1</div>
        <div style={{ height: 400 }}>item2</div>
        <div style={{ height: 400 }}>item3</div>
        <div style={{ height: 400 }}>item4</div>
        <div style={{ height: 400 }}>item5</div>
        <div style={{ height: 400 }}>item6</div>
        <div style={{ height: 400 }}>item7</div>
      </Scroller>
      <ScrollerButton>Next</ScrollerButton>
    </ScrollerProvider>
  )
}

More examples

See the example

FAQs

Package last updated on 14 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc