Answers for "function scrolup react"

2

how to scroll to an element javascript react

import { scroller } from "react-scroll";

// excluded React component syntax...

  scrollToSection = () => {
    scroller.scrollTo("your_css_class_here", {
      duration: 800,
      delay: 0,
      smooth: "easeInOutQuart",
    });
  };
Posted by: Guest on June-23-2020
-1

how to make page scroll to the top jsx

componentDidMount() {
  window.scrollTo(0, 0)
}
Posted by: Guest on November-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language