Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components not visible #59

Open
jmebradl23 opened this issue May 27, 2020 · 4 comments
Open

Components not visible #59

jmebradl23 opened this issue May 27, 2020 · 4 comments

Comments

@jmebradl23
Copy link

Attempted to do a simple test:

import React from 'react';
import ScrollAnimation from 'react-animate-on-scroll';
import "animate.css/animate.min.css";

const App = () => {
    return (
		<div>
			<ScrollAnimation animateIn='fadeIn'>
				<h1>animateIn</h1>
			</ScrollAnimation>
		</div>
    )
  }

export default App;

But the component isn't showing up on the page on scroll. Element is in the DOM but animation is not getting triggered. Only thing I see in the console is: "[HMR] Waiting for update signal from WDS..."

Any ideas?

@ZAkamboh
Copy link

Same issue with me

@CamzBarber
Copy link

Try change the animateIn to 'animate__animated animate__fadeIn', like so:
<ScrollAnimation animateIn='animate__animated animate__fadeIn'>

@williamgravel
Copy link

As of animate.css v4.0.0, CSS classes for animations are all prefixed with animate__ to avoid class clashes. Simply replace animateIn="fadeInLeft" with animateIn="animate__fadeInLeft" to fix this issue.

@quentin-pla
Copy link

quentin-pla commented Jul 29, 2020

Try to add "#root" as parent selector like this :
<ScrollAnimation animateIn='animate__animated animate__fadeInUp' scrollableParentSelector='#root'>
<h1>Hello</h1>
</ScrollAnimation>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants