GithubHelp home page GithubHelp logo

rnosov / react-reveal Goto Github PK

View Code? Open in Web Editor NEW
2.7K 16.0 179.0 11.35 MB

Easily add reveal on scroll animations to your React app

Home Page: https://www.react-reveal.com/

License: MIT License

JavaScript 100.00%
react-components scroll-animations reveal animation

react-reveal's Introduction

React Reveal

React Reveal is an animation framework for React. It's MIT licensed, has a tiny footprint and written specifically for React in ES6. It can be used to create various cool reveal on scroll animations in your application. If you liked this package, don't forget to star the Github repository.

Live Examples

A number of simple effect examples:

Also, there are more complicated examples of animated form errors and a todo app.

Search Engine Visibility

react-reveal is regularly checked against googlebot in the Google Search Console to make sure that googlebot can see the content in the revealed elements.

Full Documentation

For a full documentation please visit online docs.

Installation

In the command prompt run:

npm install react-reveal --save

Alternatively you may use yarn:

yarn add react-reveal

Quick Start

Import effects from React Reveal to your project. Lets try Zoom effect first:

import Zoom from 'react-reveal/Zoom';

Place the following code somewhere in your render method:

<Zoom>
  <p>Markup that will be revealed on scroll</p>
</Zoom>

You should see zooming animation that reveals text inside the tag. You can change this text to any JSX you want. If you place this code further down the page you'll see that it'd appear as you scroll down.

Revealing React Components

You may just wrap your custom React component with the effect of your choosing like so:

<Zoom>  
  <CustomComponent />
</Zoom>

In such case, in the resulting <CustomComponent /> HTML markup will be wrapped in a div tag. If you would rather have a different HTML tag then wrap <CustomComponent /> in a tag of your choosing:

<Zoom>
  <section>
    <CustomComponent />   
  </section>
</Zoom>

or if you want to customize div props:

<Zoom>
  <div className="some-class">
    <CustomComponent />   
  </div>
</Zoom>

Revealing Images

If you want to reveal an image you can wrap img tag with with the desired react-reveal effect:

<Zoom>
  <img height="300" width="400" src="https://source.unsplash.com/random/300x400" />
</Zoom>

It would be a very good idea to specify width and height of any image you wish to reveal.

Children

react-reveal will attach a reveal effect to each child it gets. In other words,

<Zoom>
  <div>First Child</div>
  <div>Second Child</div>
</Zoom>

will be equivalent to:

<Zoom>
  <div>First Child</div>
</Zoom>
<Zoom>
  <div>Second Child</div>
</Zoom>  

If you don't want this to happen, you should wrap multiple children in a div tag:

<Zoom>
  <div>
    <div>First Child</div>
    <div>Second Child</div>
  </div>
</Zoom>

Server Side Rendering

react-reveal supports server side rendering out of the box. In some cases, when the javascript bundle arrives much later than the HTML&CSS it might cause a flickering. To prevent this react-reveal will not apply reveal effects on the initial load. Another option is to apply gentle fadeout effect on the initial render. You can force it on all react-reveal elements by placing the following code somewhere near the entry point of your app:

import config from 'react-reveal/globals';

config({ ssrFadeout: true });

Or you you can do it on a per element basis using ssrFadeout prop:

<Zoom ssrFadeout><h1>Content</h1></Zoom>

One last option is to use ssrReveal prop. If enabled, this option will suppress both flickering and ssrFadeout effect. The unfortunate drawback of this option is that the revealed content will appear hidden to Googlebot and to anyone with javascript switched off. So it will makes sense for images and/or headings which are duplicated elsewhere on the page.

Forking This Package

Clone the this repository using the following command:

git clone https://github.com/rnosov/react-reveal.git

In the cloned directory, you can run following commands:

npm install

Installs required node modules

npm run build

Builds the package for production to the dist folder

npm test

Runs tests

License

Copyright © 2018 Roman Nosov. Project source code is licensed under the MIT license.

react-reveal's People

Contributors

noelzubin avatar rnosov 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

react-reveal's Issues

Make element disappear with React-Reveal

Hello,

React-reveal works like a charm to make components appear. However, how can I trigger a new animation to make them disappear? For example: when I click on a button or when the state changes, <Component/> slides up to the right and vanishes.

Thanks!

ps: also, could someone provide an example of a working caroussel without styled component and with images? I couldn't make mine work.

Different animations for an element based on trigger

Hi @rnosov, thank you for putting out this library, looks really cool. I had a quick usage question with the library that I was hoping you could help advice: Similar to the text in the left side of the demo here, I was looking to fade in text (or rather paragraphs of text) on scroll and then after it reaches at half the viewport, fade it out again.

Is it possible to use react-reveal to combine both the Fade In and Fade Out on the same component based on triggers like viewpoint position or opacity? If not, how would you recommend creating a similar effect with react-reveal?

Unable to Run the project

I have update the .bashrc and install the package. I am getting following error.
ERROR in ./src/index.js
Module build failed: ReferenceError: Unknown plugin "add-module-exports" specified in "/Users/webwerks/Documents/Darshana/testProject/Workspace/testProject/testProject/.babelrc" at 0, attempted to resolve relative to "/Users/webwerks/Documents/Darshana/testProject/Workspace/testProject/testProject"

Update

Could you update this? My app throws warning
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs

Custom CSS animation created with styled-components

Hello, how are you?
I'm trying to use a custom animation I created with styled-components, but it's not working.
Below I have an example:

import styled, {keyframes} from 'styled-components'
import Reveal from 'react-reveal/Reveal'

const rotate360 = keyframes`
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
`

const Rotate = styled(Reveal)`
  animation: ${rotate360} 2s linear;
`

class Card extends Component {
  render () {
    return (
      <Rotate>
        <CardContainer {...this.props} />
      </Rotate>
    )
  }
}

export default Card

It is quite possible that I am doing something wrong and I am not being able to solve it. Can this be done?

how to add animation when component is unmouting

I start using react-reveal and it looks very good but I want animation when a component is mounting as well as when a component is unmounting also. Is there any to animate when a component is removing from DOM.

Tagging versions

Hello,

Im using your component, which is very good. However to help the version tracking I would like to suggest the creation of tags for the released versions.

I already made a script to make the process faster, if you agree.

git tag -a v0.1.0 d83518c -m "Tagging version v0.1.0"
git tag -a v0.1.1 9f09414 -m "Tagging version v0.1.1"
git tag -a v0.2.0 8781e95 -m "Tagging version v0.2.0"
git tag -a v0.2.1 d8a24b3 -m "Tagging version v0.2.1"
git tag -a v0.2.2 3fbf536 -m "Tagging version v0.2.2"
git tag -a v0.3.0 cf52cc4 -m "Tagging version v0.3.0"
git tag -a v0.3.1 1939f9f -m "Tagging version v0.3.1"
git tag -a v0.3.2 234d1c3 -m "Tagging version v0.3.2"
git tag -a v0.3.3 c156919 -m "Tagging version v0.3.3"
git tag -a v0.3.4 22a1d35 -m "Tagging version v0.3.4"
git tag -a v0.4.0 5a033b5 -m "Tagging version v0.4.0"
git tag -a v0.4.1 415965c -m "Tagging version v0.4.1"
git tag -a v0.4.2 c3aa564 -m "Tagging version v0.4.2"
git tag -a v0.5.0 c3285e2 -m "Tagging version v0.5.0"
git tag -a v0.6.0 468f438 -m "Tagging version v0.6.0"
git tag -a v0.6.2 7965ee6 -m "Tagging version v0.6.2"
git tag -a v0.7.2 d4d7312 -m "Tagging version v0.7.2"
git tag -a v0.7.3 26e7801 -m "Tagging version v0.7.3"
git tag -a v1.0.0 11d1be2 -m "Tagging version v1.0.0"
git tag -a v1.0.1 b387a84 -m "Tagging version v1.0.1"
git tag -a v1.0.2 fe23d07 -m "Tagging version v1.0.2"
git tag -a v1.1.0 7444f5a -m "Tagging version v1.1.0"
git tag -a v1.1.1 f6f1e70 -m "Tagging version v1.1.1"
git tag -a v1.1.2 4bb2d71 -m "Tagging version v1.1.2"
git tag -a v1.1.3 8b3f932 -m "Tagging version v1.1.3"
git tag -a v1.1.4 782cd5d -m "Tagging version v1.1.4"
git tag -a v1.1.5 33f585e -m "Tagging version v1.1.5"
git tag -a v1.1.6 1a72309 -m "Tagging version v1.1.6"
git tag -a v1.1.7 61d0f14 -m "Tagging version v1.1.7"
git tag -a v1.1.8 fa5e796 -m "Tagging version v1.1.8"
git tag -a v1.1.9 d38ed31 -m "Tagging version v1.1.9"
git tag -a v1.2.0 7a01377 -m "Tagging version v1.2.0"
git tag -a v1.2.1 cca2905 -m "Tagging version v1.2.1"
git tag -a v1.2.2 19aa39a -m "Tagging version v1.2.2"

Best regards,
Leonardo

fade in viewport

Hello, I would like to ask how to run fade when component really scroll into viewport? like the demo, I have setup with readme, but always fade with whole component, even no scroll, thank you.

dependencies

Looks great @rnosov. Just some feedback

Babel-runtime is quite a large dependency. Why is it needed?

Could either the exact pollyfills needed be included or make the polyfills optional dependencies ?

prop-types could probably be a peerDependency as well.

You've included stage-0 for babel. I had a very quick review of the source and couldn't see a reason to have stage-0 (but easily could have missed it). Might be better to remove if its not needed?

Server Side Rendering Initial Load Fade Out / In

Hi there, thank you for your work on this animation framework, it's exactly what I was searching for.

I'm trying to add it to my single page react app (built using Gatsby). I wrapped my page contents in a simple <Fade></Fade> component and everything is working exactly how I want it to when navigating between pages. The initial page load, however, results in the contents displaying normally, then fading out and fading back in.

Is there a way to disable this behavior? I read the Server-Side Rendering section of the readme, however that leads me to believe that this is the desired result. Is that correct?

I also noticed that on the docs site, some transitions occur when navigating between pages but not when loading directly to that page (ex. the right-side navigation on this page slides up, but this transition is simply ignored if it is the initial site load). How was this accomplished? I don't mind if the transitions don't work on the initial load so long as I can avoid the unnecessary fade out / fade in.

I tried setting opacity: 0 in my CSS in hopes that it would remain hidden until the transition fades it in, but that didn't seem to help.

Steps to reproduce:

  1. Open a new browser tab, preferably incognito to avoid caching
  2. Visit my site in progress: https://dublife.netlify.com/
  3. Watch for the content on the page to load, then fade out and back in a second later.

Thanks in advance!

Cascade doesn't work on mapped components

Hi,

If I use something like the following:

<Fade bottom cascade duration={1000}> <div> {MY_DATA.options.map((option) => ( <RadioButton key={option.value} label={label} option={option} answerValue={answerValue} onRadioSelected={onOptionSelected} /> ))} </div> </Fade>

...the cascade doesn't work - all the mapped items (RadioButtons) fade in at the same time. Am I setting this up incorrectly, or is this a limitation?

Thanks for all your work on this. :)

Dynamic and/or all import support?

Hi guys,

I'm trying to import react-reveal dynamically depending on user input - is this doable at all?

I was hoping I could do something like import * as ReactReveal from 'react-reveal' then use it as <ReactReveal.Fade>

I'm taking in a user input to choose what effect they want so in the end I'm hoping it to be something like..

const Reveal = `ReactReveal.${this.props.effect}`
return (<Reveal />);

Animation duration

Hello.

I'm looking for a way to change the animation durations, since nothing mention it in the documentation (or at least I did not find it), I'm opening this as an "issue".

Thanks for answering and for this game-changer package.

reveal style visibility: hidden doesn't change on scroll

I downloaded the latest package from npm and tried the quick snippet

<Reveal effect="animated fadeInLeft">
<div>Markup that will be revealed on scroll</div>
</Reveal>

and won't work for me.

Mac, Chrome V 58, React v15.5.0

withReveal breaks flexbox styling with styled-components

I am using flexbox styling with styled-components. According to the react-reveal docs, the module should work out of the box with styled-components.

An example of where the problem comes up is:

I have a container div

import ProjectCard from './ProjectCard'

const Container = styled.div`
   width: 80%;
   max-width: 1200px;
   padding: 100px;

   display: flex;
   flex-direction: row;
   justify-content: space-evenly;
   align-items: center;
`

const ProjectSection = ({projects}) => (
    <Container>
      {projects.map(({image, title, description}, i) => (
        <ProjectCard key={i} image={image} title={title} description={description} />
      ))}
    </Container>
)

with 3 internal divs

const Card = styled.div`
   /* style */
   min-height: 400px;
   min-width: 100px;
   max-width: 400px;
   background-color: white;

   /* flex */
   display: flex;
   flex-basis: 25%;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
`;

/* apply fade in animation */
const Card = withReveal(card, <Fade bottom />)

const ProjectCard = (props) => {

  return (
    <Card>
      <Image src={props.image} />
      <h2>{props.title}</h2>
      <p>{props.description}</p>
    </Card>
  )
}

export default ProjectCard

This layout works fine without withReveal but when I wrap them in the HOC an extra div gets added which breaks the parent->child relationship in flexbox and the internal divs lose their layout, in particular the flex-basis.

The docs seem to say that this is taken care of using the refProp but then goes on to say that this is already done automatically when using styled-components.

Cascade effect doesn't recalculate variable height of revealed element (form errors)

Hi, I'm using react-reveal for smooth displaying of form errors.
Error labels vary depending on the effect of validation, therefore the element which is revealed (with cascade prop) may have different height each time it is revealed. Some errors wrap in one line, while others are broken into more lines.

If revealing of a larger element occurs after a smaller one was revealed previously in that component, it does not seem to recalculate height to current child and causes overflows.
Is there anything that could be done to trigger this recalculation?

Cheers

cannot read property 'offsetTop' of undefined

Hi, I am getting below error message while using react-reveal inside loop with custom css.

Uncaught TypeError: Cannot read property 'offsetTop' of undefined
at getAbsoluteOffsetTop (D:\Projects\xyz\node_modules\react-reveal\dist\Reveal.js:1)
at o.handleReveal (D:\Projects\xyz\node_modules\react-reveal\dist\Reveal.js:1)

Any help is highly appreciated :)

Add delay to when the animation effect should start

Hi, I was wondering if there is a way to achieve some delay after the when prop is set to true. I have an array of images. This array first has zero elements. and then when I fetched the images, it gets filled with the images' URLs. So in my when prop I simply set array.length. But I would like to wait a few 100 milliseconds before it happens. Is there a built-in method for this, or should I create an internal state which uses setInterval when array.length is not zero anymore?

'render' is not defined no-undef

Hi,
I tried using carousel in my project and i got that error.
I start with a very simple Carousel tutorial.
I not change anything.
I only added: import React from 'react';
React version 5.6.0

Prevent animation on reload, or when scrolling in different direction?

This is probably related to the other issue:

Say your app fades in its elements (from bottom) as you scroll down. This is great. However, if the user reloads the page, then scrolls up, the elements will still fade in from the bottom, which looks very wonky. Is there a (clean) way to prevent this fade in after reload, or on scroll up?

cascade doesn't work if there is only one list item

I tried this for Fade, not the others.

this was the code I used:

<Fade right cascade tag="ul">
	{this.props.details.list.map((item) => 
		<li key={Math.random(100000000000)}>
			<img alt="bullet pont" src={bullet} />
			<span>{item}</span>
		</li>
	)}
</Fade>

Fade is not working on Iphone

The Fade effect is not working on my Iphone, however when I use Chrome toggle device toolbar and select Iphone, it does seem to be working, although there's a strange behavior with the effect.

You can check the site here https://dashboardbox.netlify.com/#/ and select one of the movies and you will see what the behavior I'm talking about (in mobile mode). In my Iphone I never get to see the content inside the component. Maybe it's related to my css?

Add stepper class to documentation

Hey guys,

I was digging through your src code and found your Stepper class that I thought was really great to apply to sequenced events for elements.

Any chance you would consider adding this to the documentation so others can be aware of its availability? Seemed like it was a easter egg at first, lol as its not mentioned anywhere that I could see in the docs. Currently applying it to some projects I am working on and thought it was cool feature that was included.

Cheers!

'cannot read offset of "

Hi,
I am getting 'cannot read offset of " when using react-reveal which completely kills performance. Any ideas or tips? thanks in advance!!!

Not working properly on Safari 11 or IE11

I have implemented this and it is working on Chrome and Firefox however sometimes it doesn't work on Safari or IE11. After inspecting I have discovered that after scrolling past a Fade element, even after sitting on it for a while and scrolling back and forth, the css for .react-reveal remains opacity: 0.

screen shot 2018-04-05 at 3 07 32 pm

I have an onReveal callback that successfully works on Chrome as well and this does not get fired on Safari or IE11 either. Here is my implementation:

screen shot 2018-04-05 at 3 08 08 pm

<Fade right onReveal={this.handleOnReveal}> <img src={Images.TruckLiftgate} alt="truck_with_liftgate" /> </Fade>

When visiting the react-reveal website on safari all the examples work so this must be an implementation problem that is specific to safari/ie. Any help would be greatly appreciated, love this package but we will have to remove it from our upcoming site if we can't get it working.

react-reveal is not working in iphone when route changed

I am using react-reveal on my website. When I am changing route and go to the page where react-reveal is used, it doesn't show the animated content but when I am refreshing the page then everything works fine. This issue happens only in iPhone only, in Android, everything works fine.

What is the reason for this?

Safari won't work with fade and several elements

I have a list of dynamically loaded elements.
The first 3 elements load normally but as soon as the list requires to scroll then the animations for the newer elements won't load and opacity remains as 0. This only happens on Safari. Chrome and Firefox work alright.
I'm using react-reveal together with react-scroll. But the only way to seem to make it work is to remove react reveal wrapper.
On the inspector it looks only like a class="react-reveal" but no style properties are added to the last elements on the list.

Any Ideas on what to look for on how to fix this?

0.3.1 Breaking Changes?

Were there breaking changes between 0.3.0 and 0.3.1? I upgraded to 0.4 today, and my components that include react-reveal will no longer run. I tried downgrading to 0.3.0 and it worked, but 0.3.1 and later give me the same result:

bundle.js:5732 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check the render method of `Home`.

The Home component in this instance runs just fine if I remove any Reveal instances, which are built according to the docs:

<Reveal ssr className="row" effect="animated fadeInUp"></Reveal>

Error on Android 4.1 Browser and Chrome Desktop 42

Stack trace:
Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '@keyframes react-reveal-956029157852754-1{from {opacity: 0; transform: translate3d(0, -100%, 0);} to {opacity: 1;transform: none;} }'. at Error (native)

It is only in production.

UPD
The problem in a version of a package in npm:
function animation(e) { if (!sheet) return ""; var n = "@keyframes " + (name + counter) + "{" + e + "}", t = effectMap[e]; return t ? "" + name + t : (sheet.insertRule(n, sheet.cssRules.length), effectMap[e] = counter, "" + name + counter++) }

Possible to disable "debounce"

The earlier versions of this code used to trigger the reveal while a scroll was taking place. After upgrading to the latest version, I am noticing that the animation does not take place until the window scrolling has come to a complete stop. I am guessing this was done for performance reasons, but I am wondering if there is a way to disable this? My client is asking for the reveal animation to happen as soon as possible, even while the user is still scrolling. Can this be done?

Old behavior (instant reveal)
https://cl.ly/2m1j3T013X1x

New behavior (delayed/denounced reveal)
https://cl.ly/2u0u1A0z2O2T

[Question] custom animation curve?

I didn't see any props for something like "ease-in" or "ease-out". Is this something possible to do?

Fantastic library btw. Makes so many thing so much easier!

Reset animation when component is out of viewport

Is it possible to reset animations once the component leaves the viewport?
The use case would be, a user has loaded the page, but would like to show someone else. Instead of refreshing, they would be able to just scroll through the content again.

Thanks

React reveal starts revealing, before content (image) is loaded.

Hello community

On my page I am using cascade reveal on my list. Each list item has a React component rendered inside (the component is basically link thumbnail).
My problem is that reveal of the list item begins before the component inside is fully loaded, meaning items are revealed before thumbnail image is fully loaded. This is problem speacially with poor internet connection.
Question is: Is there any way to postpone reveal up until the image and the item content is fully loaded?

By the way great work, really like the framework.

No animation when nesting animation

Hi all,

I'm trying to make a login form including various animations, however when I nest an animation inside another animations the nested animation appears without animating. Below I have provided the source code. Please note that I am using Redux

class Login extends Component {
    constructor(props) {
        super(props);

        this.state = {
            form: {
                email: "",
                password: ""
            }
        };

        this.handleSubmit = this.handleSubmit.bind(this);
        this.handleChange = this.handleChange.bind(this);
    }

    handleSubmit(e) {
        e.preventDefault();
        this.props.requestAuth(this.state.form.email, this.state.form.password);
    }

    handleChange(input, e) {
        this.setState({
            form: {
                ...this.state.form,
                [input]: e.target.value
            }
        });
    }

    render() {
        const card =
            <Card title="Please sing in to continue">
                <form onSubmit={this.handleSubmit}>
                    <fieldset disabled={this.props.auth.isLoggingIn}>
                        <InputGroup for="email-input" label="Email address">
                            <input id="email-input" className="form-control" type="email" value={this.state.form.email}
                                   placeholder="Enter email" onChange={this.handleChange.bind(this, "email")}/>
                        </InputGroup>

                        <InputGroup for="password-input" label="Password">
                            <input id="password-input" className="form-control"
                                   type="password" value={this.state.form.password}
                                   placeholder="Password" onChange={this.handleChange.bind(this, "password")}/>
                            <InputError wait="10000" when={this.props.auth.hasError === true} bottom collapse>
                                <span> Incorrect username and/or password</span>
                            </InputError>
                        </InputGroup>
                        <Button isLoading={this.props.auth.isLoggingIn} className="btn-primary"
                                type="submit"
                                onClick={this.handleSubmit}>Submit</Button>
                    </fieldset>
                </form>
            </Card>;

        const loginForm = this.props.auth.hasError ? <HeadShake>{card}</HeadShake> : card;

        return this.props.auth.isAuthenticated ?
            (<Redirect to="/"/>)
            :
            (<NoNavigation>
                <div className="offset-lg-3 col-lg-6">
                    <br/><br/><br/> <br/><br/><br/>
                    {loginForm}
                </div>
            </NoNavigation>);
    }
}

Server Side Rendering causing issues on v. 1.1.10

Hey, great work on this plugin! Had some issues with Server Side Rendering after deploying to Netlify today with version 1.1.10, specifically getting the 'window' is not defined error during build -

screen shot 2018-03-05 at 2 46 19 pm

After going back to version 1.1.7 it works great with no build errors or 'window' issues.

Thanks again!

Styled-Components 4.x support

Big fan of react-reveal.

I'm trying to use it with the latest version of styled-components. Previously styled components exposed an innerRef prop that allowed react-reveal to gel nicely but with refForwarding in the latest versions of React, that styled-components prop has been deprecated & removed. This means I can't 'reveal' a styled component without a wrapper div being placed, I believe due to this line, but I'm not sure.

I've made a code pen to exemplify this issue. https://codesandbox.io/s/zrz35jnymp / https://zrz35jnymp.codesandbox.io/

I think it'd probably be a semver major change to update this default prop behavior, so I wouldn't be opposed to adding some sort of flag in the mean time to specify I don't want wrapper div even if the refProp is ref. Thoughts?

Running into a weird error with GatsbyJs

Hi Guys,

Everytime i try to use this package I get the following error:

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: symbol.

For reference i'm using GatsbyJs. Is there any logical reason for this happening?

Fade doesn't load when route changes

In react when I change routes in React, about 10% of the time the content doesnt load unless i scroll up and down, putting the content back into the window view. These routes are hash-routes to IDs, if that makes a difference.

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.