Giter Club home page Giter Club logo

react-flip-toolkit-router-example's Introduction

react-flip-toolkit-router-example's People

Contributors

aholachek 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

react-flip-toolkit-router-example's Issues

Next.js example?

Can I just say that this is the coolest animation library I've ever seen.

I'm trying to integrate this with Next.js and having a hard time mapping the react-router App.js file with the _app.js used by Next.js

Any chance you could make a next.js example?

🙏

The icons are not visible below vh and you cannot scroll.

I think you have inner divs with fixed position. The icons are not visible if they go below view height. I added auto scroll and max height to the inverted div for a quick fix.

The same problem happens with your

"Image Transition Demo"

Someone can easily attribute the error with the toolkit, which is not the case.

cap2

cap1

Flip route change

Hi, thanks for an awesome lib! I was trying to make a page transition effect with the following structure

<Flipper flipKey={this.props.location.pathname}
    <Switch>
        <Route path='/' component={CardList}>
        <Route path='/card:id' component={CardPage}>
    </Switch>
</Flipper>

const CardList = () => {
    <div>
        <Flipped flipId='card1'>
            <Card>
        </Flipped>
        ...
        <Flipped flipId='card6'>
            <Card>
        </Flipped>
    </div>
}

const CardPage = (id) => {
    <Flipped flipId={`card${id}`}>
        *some page contect*
    </Flipped>
}

Basically, I have two pages, one page with 6 cards, another is just a page with all the info about a selected card. When I click the card it should expand to a full page. Everything is fine with page -> card transition, but card -> pagelooks bad. When I click the card the whole page disappears instantly and I see the animation of expanding page on a white screen. Looks like it is removed from DOM too early. What am I missing?

Understand properly behavior of `onExit` and `onAppear` callback

First, thank you for this awesome library. I am playing with the core version of it but I don't understand a particular behavior, I have these flipped elements, and want to animate the opacity to 0 when one element leaves the DOM.

The "problem" is that when the element is being re-inserted in the DOM, it has the opacity set to 0. Do the library cache the element before removing it?

        let el = document.querySelectorAll("figure").forEach((f, i) => {
          flipper.addFlipped({
            element: f,
            flipId: "square" + i,
            onStart: () => console.log("animation started!"),
            onComplete: () => console.log("animation completed!")
             onExit: (el, i, remove) => {
               snabbt(el, {
                 opacity: 0,
                 ease: "tween",
                 fromOpacity: 1,
                 complete: () => {
                   console.log("animation completed2", el);
                   remove();
                 }
               });
             }
          });
        });

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.