Code Monkey home page Code Monkey logo

velocitytransitiongroup's Introduction

##VelocityTransitionGroup 0.3.1

Getting close to version 1 as well as actual documentation and live samples. Check example for now.

###Run Example npm install npm run dev

open your browser and visit: http://localhost:8080/

###Example Usage

    <VelocityTransitionGroup
        /* pass desired html tag */
        component="ul"
        
        /* either pass true or another string for a seperate transition on load */
        appear="transition.bounceIn"
        
        /* transition upon entering DOM, notice we can pass properties as well as forecfeed the values instead of a predefined animation */
        enter={{opacity: [0, 1]}}
        
        /* if not set, no transition out should happen on leave */
        leave="transition.fadeOut"
        
        /* pass true to animate parent height before transitioning children in */
        wrapper={false}
    
        /* set default options for all transitions */
        defaults={{
            duration: 300
        }}
    
        /* or optionally pass in different options per transition */
        appearOptions={{
            stagger: 100,
            etc...
        }}
        enterOptions={{}}
        leaveOptions={{}}
        wrapperOptions={{}}
    >
        {items}
    </VelocityTransitionGroup>

###Known Bugs Switching between two states callbacks are off and show all elements at one time, need to handle firing at proper times.

If changing state before completing any animation it will lose any references between both and return nothing or get stuck. Need to handle canceling a transition if this happens and return the requested state.

###TODOS Add support to animate parent height or a dummy div that gets placed in or both. Could be useful for a list when animating out in between two other items.

Add support for sorting arrays.

Check if jQuery is loaded or not since Velocity changes behaivor if it is.

velocitytransitiongroup's People

Contributors

souporserious avatar stipsan avatar

Watchers

 avatar

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.