Coder Social home page Coder Social logo

thierryc / react-fullpage Goto Github PK

View Code? Open in Web Editor NEW
205.0 6.0 22.0 4.49 MB

Create Fullscreen Scrolling Websites

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

License: MIT License

JavaScript 99.70% CSS 0.30%
react reactjs ui fullpage

react-fullpage's Introduction

@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

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 thierryc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-fullpage's Issues

BUG : scrolling Bug

when you click on the right side steps, when you scroll to up,
it start from the last page !!

for example, click on the step 3 of 5 on the right side and then scroll to up, it start from last page

scrollbar position & page position don't update when following page link

Expected Behavior

Scrollbar and page "document" positions track viewport position when a breadcrumb / page anchor is clicked.

Actual Behavior

Scrollbar position and page position with respect to scrolling stay the same when breadcrumb links are clicked. This prevents scroll from working correctly after button-based navigation.

Navigator and OS versions

Navigator: Chrome v75.0.3770.142
OS: Win 10 Pro v1809 build 17753.615

Expose GoToSlide method

I do not see it in the documentation.

In my use case I would want to move to the next slide after user clicks button. Is there a way to access GoToSlide method? I see it is being use in Navigation component.

long scroll required to be triggered

Expected Behavior

Scroll on mouse wheel

Actual Behavior

When scrolling using the moue wheel it is required to scroll many times until the page scroll is triggered

Navigator and OS versions

Any

Infinite scroll

Is it possible to make it infinite, make it reset to first slide after the last slide?

fixed position also getting scrolled

Expected Behavior

If I give some element fixed position (i.e. position: fixed) inside ideally it should stay on the screen and It should not get scrolled while scrolling.

Actual Behavior

If I give any element position fixed like below:

Hello

2

If I scroll to to second section fixed element should be shown.

Navigator and OS versions

add Eslint

eslint-config-airbnb
eslint-plugin-jsx-a11y

How to get the current slide?

How to get the current slide?
I want to find out if a slide is in focus, so I can start my css animation. If it starts when the page loads, the user won't see it.

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.