Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Demos are too complex #231

Open
mchaov opened this issue Oct 22, 2017 · 4 comments
Open

Demos are too complex #231

mchaov opened this issue Oct 22, 2017 · 4 comments

Comments

@mchaov
Copy link

mchaov commented Oct 22, 2017

1st of all, great demos. However they require quite a lot of clean up and dependencies in order to see what is really going on.

Simpler demos without additional dependencies that showcase implementation of the library would be best.

@andraz
Copy link

andraz commented Jul 31, 2018

I created this wrapper to fade-in on mount:

import { VelocityComponent } from 'velocity-react'

const FadeIn = ({ children }) =>
  <VelocityComponent runOnMount animation={{ opacity: 1 }} duration={1000}>
    <div style={{ opacity: 0 }}>
      {children}
    </div>
  </VelocityComponent>

export default () =><FadeIn><button>Hi</button></FadeIn>

@derwaldgeist
Copy link

I want to second on this. I just wanted to know how the transition groups work in principle, because I did not get them to work. But the sample code is so overly complex, it was really hard to understand.

@h0jeZvgoxFepBQ2C
Copy link

Yeah, I confirm this 👍 they are too complex

@mchaov
Copy link
Author

mchaov commented Sep 30, 2020

BTW I've long ago bought GSAP suite ... BEST DECISION EVER!

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

No branches or pull requests

4 participants