Code Monkey home page Code Monkey logo

react-fullpage's People

Contributors

0xpatrickdev avatar bartoszociepka avatar bradylove avatar elkorn avatar grimen avatar kaelxeth avatar kiuka avatar liekkas avatar m-muhsin avatar mihaiari avatar subtirelumihail 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-fullpage's Issues

Navigation bug

After launching the website for the first time the Navigation no link is being active.

Disable scroll

Are there any hooks available to stop mouse scrolling conditionally?
I have a google map in one of the section and on cluster click, I am showing a list of items in a pop-up, which has to scroll in it. When scrolling in the pop-up, the section is also scrolling, setting overflow scroll doesn't work for me!
screenshot from 2017-03-24 14 32 20

React version Update

Are there breaking changes if to change react version in your lib to latest? Do you planning such update?

Every time I scroll my content is pushed down.

This is an odd issue I'm having. Every time I scroll to the next (full screen) bullet point there is space added between my content within the full page. As I scroll to the next page the content keeps getting pushed down a little. I've commented out all of my CSS styling and it's still happening. By the time I get to the last full page screen, my content has been pushed to the middle of the page. if I add more pages it will eventually be split in half, half of my content on the top of the page and the other on the bottom.

Does not work on scroll on mobile

I have tested this on chrome android and safari ios,
scrolling does not change slides.
react-fullpage: 0.1.16,
react version: 15.4.1

Tooltips on navigation not displaying

Hey,
How can I add tooltips to navigation dots? I tried adding this:
navigationTooltips: ['firstSlide', 'secondSlide'],
showActiveTooltip: false
in options but it's not working for me. Also if I put

from the example it gives me an error.

ie9+ Compatibility

This doesn't seem to be Ie9 compatible. Any chance of supporting Legacy browsers?

Custom className with CSS Modules is ignored

When I put className option for SectionsContainer and put its variable 'section-container', it works but When I use CSS Modules and put the className option as style['section-container'] it is ignored and the container div get the default className.

Also I imported styles:

import styles from './styles.css'

so It must work like react-slick. but it doesn't.

Cannot go back to the first section with dynamically sections

Hi,

When I load data via axios, I can not go back to the first section (unless I click on the prev button). Scrolling or keyboard up-button doesn't work.
But if I use static data, the problem doesn't occur. Is there something that I'm missing ?

My whole (simple) example

import React, { Component } from 'react';
import { ScrollToTopOnMount, SectionsContainer, Section } from 'react-fullpage';
import axios from 'axios';

class Example extends Component {
    constructor(props) {
      super(props)
      this.state = {
        current: 0,
        todos: []
      }
    }
    componentDidMount() {
        axios.get('http://jsonplaceholder.typicode.com/todos?_limit=5').then((response)=>{
            this.setState(()=>{
               return {
                 todos: response.data
               }
            })
        });
    }
    render() {
        const options = {
            sectionClassName: 'section',
            anchors: ['sectionOne', 'sectionTwo', 'sectionThree', 'sectionFour', 'sectionFive'],
            scrollBar: false,
            navigation: true,
            verticalAlign: false,
            sectionPaddingTop: '0px',
            sectionPaddingBottom: '0px',
            arrowNavigation: true,
            scrollCallback: (states) => this.setState({current: states.activeSection})
        };
        const {current} = this.state
        return (
            <div>
                 <ScrollToTopOnMount />
                <SectionsContainer className="container" {...options} activeSection={current}>
                    { this.state.todos.map((item)=>{
                            return <Section key={item.id}>{item.title}</Section>
                        })
                    }
                </SectionsContainer>
                <div className="btnGroup">
                    <button onClick={() => this.setState({current: current - 1})} disabled={current === 0}>pre</button>
                    <button onClick={() => this.setState({current: current + 1})} disabled={current === 2}>next</button>
                </div>
            </div>
        )
    }
}
export default Example;

if I change

                    { this.state.todos.map((item)=>{
                            return <Section key={item.id}>{item.title}</Section>
                        })
                    }

into static sections like this:

                    <Section>1</Section>
                    <Section>2</Section>
                    <Section>3</Section>
                    <Section>4</Section>
                    <Section>5</Section>

the problem doesn't occur.

Is this a (known) bug? How can I solve it ?

Incompatibility with lightbox integration

My website is utilising a popup Lightbox image gallery, however once the lightbox is closed, the scrolling for fullpage seems to break, for example, having the scrollbar set to false, it seems to forcibly override and add it back.

For reference:
screenshot from 2017-04-10 10-54-14

update plugin for React v16

I have this error with 16 version of react

var ReactCurrentOwner = ReactInternals.ReactCurrentOwner;
^

TypeError: Cannot read property 'ReactCurrentOwner' of undefined

This is a common mistake for many plugins

Add an example link for preview

It would be a good point to have a demo link in Github Pages, Zeit Now or Heroku. We could preview how the library works ๐Ÿ‘

Mobile View

It doesn't seem to scroll on mobile devices, when I try touch-scroll.

`react-fullpage` prevent my horizontal swipe event

I'm using pure CSS horizontal carousel in mobile view, Like google mobile version carousel, Just like below image:

carousel google

But when I use react-fullpage, it doesn't work, also when I swipe horizontal then I see none in browser console, it means not up or down, and I believe react-fullpage prevent this action.

I think it is a BUG, if not how can I settle my issue?

Scroll on overflow, but no scroll otherwise

Hey guys, is it possible to scroll on overflow, so if I drag my window smaller then the screen can scroll and then when it hits the end of the scroll then it goes to the next card? I think fullpage.js allows for this but there seems to be issues with this.

I think their option is scrollOverflow

creating custom effects on section leave

Hi
I want to add some animation when leaving a section. but onLeave callback method doesn't work. is there another way to implement this feature or not?
ideally i want to implement a behavior like this with full page react.
thanks in advance for your guidance.

Problem with whitespace

Hello,

I have a problem using whitespaces on inputs (including textareas, ...): they don't work at all and I don't understand why.

Didn't see someone having the same problem on the internet.

Thanks if someone can help me with that, love the package!

Support HashRouter?

Hi, i have problem HashRouter. It auto refresh to http://localhost:3000/#/sectionTwo => 404 page
Any idea. Thanks

Help wanted

Because I don't have a lot of time to maintain this, I am looking for contributors.
Please reply with a comment and I will contact you so I can create a group a people that could maintain this plugin and maybe extend it even more

arrowNavigation breaks input fields

When setting arrowNavigation to true, you can no longer navigate in text input fields using arrow keys, and more importantly, you can not type spaces.

This is the offending code in SectionsContainer:
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { e.preventDefault(); // Prevent unwanted scrolling on Firefox }

Uncaught Invariant Violation

Uncaught Invariant Violation: traverseParentPath(...): Cannot traverse from and to the same ID, ``.

Keep getting this error. Seems like it has something to do with the components that SectionsContainer or Section creates.

Section custom height

Hi,
I have a question where a section's height is about double the viewport's height. This messes up the entire slide experience.

Is there any way to set custom section height instead of the pre-calculated one?

delay option doesn't work

If I set value 50 milliseconds to delay or set value 5000 milliseconds to delay it doesn't make sense to react-fullpage

Mobile Scrolling through Sections skipping content

Attempting to implement the React-Fullpage in a mobile view, when the content exceeds the screen size, a scroll will skip past all the content onto the next anchor. Is there any way to cater for this apart from introducing more anchors into the page?

Overscrolling with mac touchpad

When using react-fullpage on a mac laptop, using the touchpad, there is an issue that causes it to scroll too far and you end up scrolling two sections when you meant to scroll one.

There is a similar issue on fullpage.js here and it seems to be somewhat eliminated by using the css3 property. I'm not sure exactly what this does but it seems to fix the issue and they use it one all of their examples (which work well using mac touchpad)

server-side rendering

There will be an error--'window is not defined' when I use server-side rendering.

Error when using with GatsbyJS

Facing this error when trying to use react-fullpage in a GatsbyJS project.

SectionsContainer.js:432 Uncaught (in promise) TypeError: Cannot read property 'func' of undefined at Object../node_modules/react-fullpage/dist/SectionsContainer.js

Any ideas?

can you define the license?

hi, I want to use the module in our web project.
but I don't find license of this module. Can owner define it?

Scrolling multiple sections at once.

Hey guys, I'm using react-fullpage and when I scroll, but if I make my scroll gesture too long on the mac, I scroll through 2 sections at once. It will scroll to the next section, and then scroll to the next one.

Any fixes?

Is this a full port of fullpage.js?

The readme only says things may change, but gives no indication of whether all the features, config, etc. have been brought over. Could you give some indication of what state it's in with respect to fullpage.js?

When using react-fullpage and ScrollToTopOnMount with react-router,the error is '[react-router] Location "/sectionTwo" did not match any routes'

Component's code is the same as the example of your Git ,and also add the ScrollToTopOnMount component.But the browser gives the error "[react-router] Location "/sectionTwo" did not match any routes".

`import React, { Component, PropTypes } from 'react'
import {ScrollToTopOnMount, SectionsContainer, Section} from 'react-fullpage';

export default class Cover extends Component {
constructor(props) {
super(props)
this.state = {
current: 0,
}
}
render() {
const options = {
sectionClassName: 'section',
anchors: ['sectionOne', 'sectionTwo', 'sectionThree'],
scrollBar: false,
navigation: true,
verticalAlign: false,
sectionPaddingTop: '50px',
sectionPaddingBottom: '50px',
arrowNavigation: true,
scrollCallback: (states) => this.setState({current: states.activeSection})
};

const {current} = this.state

return (
  <div className="container">
    <ScrollToTopOnMount />
    <SectionsContainer className="container" {...options}>
      <Section className="custom-section" verticalAlign="true" color="#69D2E7" activeSection={current}>Page 1</Section>
      <Section color="#A7DBD8">Page 2</Section>
      <Section color="#E0E4CC">Page 3</Section>
    </SectionsContainer>
  </div>
)

}
}`

Revert to normal scroll when switching routes.

I have a simple landing page that uses react-router , and I'm having issues when navigating away from Fullpage.js.

My render method looks like this, and react-fullpage is only active in the Fullpage component:

render(
  <Router history={browserHistory}>
    <Route path="/" component={App}>
      <IndexRoute component={Fullpage}/>
      <Route path="/terms" component={Terms}/>
      <Route path="*" component={Fullpage}/>
    </Route>
  </Router>,
  document.getElementById('root')
);

When I have scrollBar: false, the Terms component loads when I navigate to /terms but the page scroll is disabled. When I have scrollBar: true, I am able to scroll on the /terms route but it initially loads with the same scroll position that the Fullpage route had.

Is there any way to fix this? Either on my end or with a PR to the project? Has anyone else experienced something like this?

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.