项目作者: thierryc

项目描述 :
Create Fullscreen Scrolling Websites
高级语言: JavaScript
项目地址: git://github.com/thierryc/react-fullpage.git
创建时间: 2018-07-07T18:48:08Z
项目社区:https://github.com/thierryc/react-fullpage

开源协议:MIT License

下载


@ap.cx/react-fullpage

https://thierryc.github.io/react-fullpage/

another demo:

https://thierryc.github.io/react-fullpage-example/

This project is still in a very early stage.
You shouldn’t use this for production unless you really know what you’re doing. 🖖

Features

  • Design for Mobile, Tablet, and Desktop
  • Nested Component (simple to use)
  • Hide safari’s header on Scroll on iphone and ipad
  • Hide Google Chrome’s header on Scroll on iOS and Android
  • Drived by the scroll
  • CSS animation
  • GPU/CPU swtich
  • Very Small ( ~ 25kB )
  • MIT License (no fullpage.js dependency)

Create Fullscreen Scrolling Websites

NPM
MIT

Install

  1. npm install --save @ap.cx/react-fullpage

Usage

  1. import React, { Component } from 'react'
  2. import Fullpage, { FullPageSections, FullpageSection } from '@ap.cx/react-fullpage'
  3. export default class App extends Component {
  4. render () {
  5. return (
  6. <Fullpage>
  7. <FullPageSections>
  8. <FullpageSection style={{
  9. backgroundColor: 'lime',
  10. height: '80vh',
  11. padding: '1em',
  12. }}>1</FullpageSection>
  13. <FullpageSection style={{
  14. backgroundColor: 'coral',
  15. padding: '1em',
  16. }}>2</FullpageSection>
  17. <FullpageSection style={{
  18. backgroundColor: 'firebrick',
  19. padding: '1em',
  20. }}>3</FullpageSection>
  21. </FullPageSections>
  22. </Fullpage>
  23. )
  24. }
  25. }
  26. Migation from previous version.
  27. Add the ``` <FullPageSections> ... </FullPageSections>
  1. ### For IE

npm i babel-polyfill

import “babel-polyfill”;

  1. ## Mobile First
  2. ![Android Phone](https://raw.githubusercontent.com/thierryc/react-fullpage/master/static/images/android-phone.jpg)
  3. ## Dev
  4. open 2 terminal
  5. In the first terminals windows.

npm i
npm link
npm start

  1. In the second terminal

cd example
npm i
npm link @ap.cx/react-fullpage
npm start

  1. ## Thanks
  2. Special thanks to [BrowserStack](https://www.browserstack.com/users/sign_up) for sponsoring this plugin. 👍
  3. [![Browserstack](https://raw.githubusercontent.com/thierryc/react-fullpage/master/static/images/browserstack@2x.png)](https://www.browserstack.com/users/sign_up)
  4. ## License (MIT)

WWWWWW||WWWWWW
W W W||W W W
||
( OO )__
/ | \
/o o| MIT \
_/||_|||||| *
|| || || ||
|||| ||||
(||(_|
|
```

MIT © thierryc
Copyright (c) 2018-present anotherplanet.io, hello@anotherplanet.io

Hit me up on Twitter

@Autre_planete