All Projects → Andarist → use-smooth-scroll

Andarist / use-smooth-scroll

Licence: other
React hook which gives a smooth scrolling function.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to use-smooth-scroll

use-scroll-direction
A simple, performant, and cross-browser hook for detecting scroll direction in your next react app.
Stars: ✭ 24 (-41.46%)
Mutual labels:  hooks, hook, scroll
Hooks
Async middleware for JavaScript and TypeScript
Stars: ✭ 117 (+185.37%)
Mutual labels:  hooks, hook
Swifthook
A library to hook methods in Swift and Objective-C.
Stars: ✭ 93 (+126.83%)
Mutual labels:  hooks, hook
React Intersection Observer
React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
Stars: ✭ 2,689 (+6458.54%)
Mutual labels:  hooks, hook
Fontmod
Simple hook tool to change Win32 program font.
Stars: ✭ 1,064 (+2495.12%)
Mutual labels:  hooks, hook
Ysf
YSF Server Functions
Stars: ✭ 77 (+87.8%)
Mutual labels:  hooks, hook
react-ui-hooks
🧩Simple repository of React hooks for building UI components
Stars: ✭ 20 (-51.22%)
Mutual labels:  hooks, hook
Use Onclickoutside
React hook for listening for clicks outside of an element.
Stars: ✭ 361 (+780.49%)
Mutual labels:  hooks, hook
React Use Wizard
🧙 A React wizard (stepper) builder without the hassle, powered by hooks.
Stars: ✭ 162 (+295.12%)
Mutual labels:  hooks, hook
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (+321.95%)
Mutual labels:  hooks, hook
Useworker
⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks
Stars: ✭ 2,233 (+5346.34%)
Mutual labels:  hooks, hook
Webhook
webhook is a lightweight incoming webhook server to run shell commands
Stars: ✭ 7,201 (+17463.41%)
Mutual labels:  hooks, hook
React Use Gesture
👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.
Stars: ✭ 5,704 (+13812.2%)
Mutual labels:  hooks, scroll
React Selector Hooks
Collection of hook-based memoized selector factories for declarations outside of render.
Stars: ✭ 84 (+104.88%)
Mutual labels:  hooks, hook
Use Scroll Position
Use scroll position ReactJS hook done right
Stars: ✭ 414 (+909.76%)
Mutual labels:  hooks, scroll
React Universal Hooks
🎉 React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React DevTools!
Stars: ✭ 148 (+260.98%)
Mutual labels:  hooks, hook
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+429.27%)
Mutual labels:  hooks, scroll
Swr
React Hooks for data fetching
Stars: ✭ 20,348 (+49529.27%)
Mutual labels:  hooks, hook
Radioactive State
☢ Make Your React App Truly Reactive!
Stars: ✭ 273 (+565.85%)
Mutual labels:  hooks, hook
Pinst
🍺 dev only postinstall hooks (package.json)
Stars: ✭ 162 (+295.12%)
Mutual labels:  hooks, hook

use-smooth-scroll

React hook which gives a smooth scrolling function.

Example (Codesandbox)

const Example = () => {
  const ref = React.useRef()
  const scrollTo = useSmoothScroll('x', ref)

  return (
    <>
      <button onClick={() => scrollTo(getRandomScrollTarget(ref.current))}>
        Click me
      </button>
      <Carousel innerRef={ref}>
        {range(100).map(i => (
          <Card key={i} />
        ))}
      </Carousel>
    </>
  )
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].