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

Animation only works when re-visiting the page #9

Open
bkrall opened this issue Mar 21, 2017 · 1 comment
Open

Animation only works when re-visiting the page #9

bkrall opened this issue Mar 21, 2017 · 1 comment
Labels

Comments

@bkrall
Copy link

bkrall commented Mar 21, 2017

This component is amazing. Exactly what I was looking for and more.

That said, I'm having a little bit of trouble with the animation. On the first load, all of my items animate all at once. Then, when I revisit the page, it loads as expected, fading in as I scroll down the page, using the correct delay / duration settings.

Here are the settings I'm using:

import StackGrid, { transitions, easings } from 'react-stack-grid';
const { fadeUp } = transitions;

      <StackGrid
                appearDelay={1200}
                gutterWidth={15}
                duration={800}
                easing={easings.cubicOut}
                gutterHeight={-120}
                appear={fadeUp.appear}
                appeared={fadeUp.appeared}
                enter={fadeUp.enter}
                entered={fadeUp.entered}
                leaved={fadeUp.leaved}
                columnWidth={770}
             >

              {this.props.items &&
                this.props.items.map((item, index) => (
   ...

Appreciate any help!

@wadackel
Copy link
Owner

Hi @tsudmi. Thanks for issues 🙏. and sorry for my late reply.

It will take some time to fix it, so I'm happy to be waiting patiently 🚬

@wadackel wadackel added the bug label Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants