Skip to content
R

react-scrollchor

A React component for scrolling to #hash links with smooth animations

by bysabiFree

#914in UI Libraries
0In stores

Description

react-scrollchor is a React component that scrolls smoothly to #hash links on the page. The name is a mix of Scroll and Anchor. You give the…

Highlights

  • Smooth scroll to #hash anchor links
  • Works inside scrollable containers
  • Customizable easing and pixel offset
  • beforeAnimate hook before scrolling
  • TypeScript definitions included

Ratings & Reviews

No ratings yet

Be the first to rate react-scrollchor.

People also visit

R

react-scroll

React scroll component

UI Libraries
Launch
R

react-animate-on-scroll

React component to animate elements on scroll with animate.css

UI Libraries
Launch
R

react-scroll-up

React component to render element for scroll to top of page

UI Libraries
Launch
R

rc-scroll-anim

scroll-anim anim component for react

UI Libraries
Launch
R

react-waypoint

A React component to execute a function whenever you scroll to an element

UI Libraries
Launch
R

react-scroll-trigger

React component tied to scroll events

UI Libraries
Launch

react-scrollchor FAQ

What does react-scrollchor do?

It is a React component that smoothly scrolls the page to the element matching a #hash link.

How do I install it?

With npm or yarn. Your project needs React 16.8.0 or later.

Can I change the animation?

Yes. The animate prop customises the smooth scrolling, and the package exports the easeOutQuad, swing and linear easings.

Can it scroll inside a container?

Yes. Set the target prop to the scrollable element. If no target is given or found, it scrolls the page.

Does it include types?

Yes, it ships TypeScript type definitions.

What are the best react-scrollchor alternatives?

Popular alternatives to react-scrollchor include react-scroll, react-animate-on-scroll and react-scroll-up. See all react-scrollchor alternatives

Developer Stuff

Badges