1. 安装React-Page-Scroller 要使用React-Page-Scroller,首先需要在项目中安装该组件。您可以通过npm或者yarn来进行安装,具体命令如下:示例代码star:编程语言:bash npm install react-page-scroller 示例代码end 或者 示例代码star:编程语言:bash yarn add react-page-scroller 示例代码end ...
<PageScroller> Page 1 Page 2 Page 3 </PageScroller> ``` 在这个例子中,我们定义了一个包含3个页面的React-page-scroller组件。用户可以通过滚动来浏览这3个页面。 配置选项 React-page-scroller提供了一些配置选项,可以帮助开发者定制滚动效果。下面是一些常用的配置选项: 这些配置选项可以根据具体情况进行调整,...
Live demo: vikliegostaiev.github.io/react-page-scroller To run demo app locally: npm install npm start App will start on localhost:3000. Installation via npm: npm install react-page-scroller --save Usage import ReactPageScroller from 'react-page-scroller'; Example is in demo/src. Prope...
you can now block scrolling when you need this. Assets2 26 Oct 09:24 VikLiegostaiev 1.4.2 3c44b13 Compare 1.4.2 Can't scroll child components #11 Assets2 22 Sep 16:43 VikLiegostaiev 1.4.0 6959f6a Compare 1.4.0 Changing state of child components inside Page Scroller #8...
react-page-scroller/src/index.js Line 2 in a9df994 import "babel-polyfill"; on my node_modules and it works but I don't see anywhere else in my code where babel-polyfill is being imported which makes me think that this line is unnecessary? EDIT: I made a pull request #28 maybe...
Simple React component for smoothy full-page scolling using CSS animations. React Page Scroller - Release iOS safari touchmove event fix · VikLiegostaiev/react-page-scroller