GithubHelp home page GithubHelp logo

aman-io / react-fullpage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thierryc/react-fullpage

0.0 1.0 0.0 3.02 MB

Create Fullscreen Scrolling Websites

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

License: MIT License

JavaScript 99.69% CSS 0.31%

react-fullpage's Introduction

@ap.cx/react-fullpage

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

another demo:

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

  • 0.1.10-alpha Alpha Version. Not for production.
  • WARNING 0.1.7-alph and 0.1.8-alpha are 2 experimentals Alpha Version. Not for production.

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

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

Usage

import React, { Component } from 'react'
import Fullpage, { FullPageSections, FullpageSection } from '@ap.cx/react-fullpage'

export default class App extends Component {
  render () {
    return (
      <Fullpage>

        <FullPageSections>

          <FullpageSection style={{
            backgroundColor: 'lime',
            height: '80vh',
            padding: '1em',
          }}>1</FullpageSection>
          <FullpageSection style={{
            backgroundColor: 'coral',
            padding: '1em',
          }}>2</FullpageSection>
          <FullpageSection style={{
            backgroundColor: 'firebrick',
            padding: '1em',
          }}>3</FullpageSection>

        </FullPageSections>

      </Fullpage>
    )
  }
}

Migation from previous version.
Add the ``` <FullPageSections> ... </FullPageSections>```

For IE


npm i babel-polyfill

import "babel-polyfill";

Mobile First

Android Phone

Dev

open 2 terminal

In the first terminals windows.


> npm i
> npm link
> npm start

In the second terminal


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

Thanks

Special thanks to BrowserStack for sponsoring this plugin. ๐Ÿ‘

Browserstack

License (MIT)

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

MIT ยฉ thierryc Copyright (c) 2018-present anotherplanet.io, [email protected]

Hit me up on Twitter

@Autre_planete

react-fullpage's People

Contributors

dependabot[bot] avatar h1u2i3 avatar thierryc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.