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

Should be able to accept custom animations #2

Open
devgeeks opened this issue Apr 29, 2016 · 1 comment
Open

Should be able to accept custom animations #2

devgeeks opened this issue Apr 29, 2016 · 1 comment
Assignees
Milestone

Comments

@devgeeks
Copy link
Owner

devgeeks commented Apr 29, 2016

Not sure what these should look like. Maybe as simple as four sets of styles (as style objects)?

  • current component start
  • current component end
  • next component start
  • next component end
@devgeeks devgeeks self-assigned this Apr 29, 2016
@devgeeks
Copy link
Owner Author

devgeeks commented Apr 29, 2016

maybe something like...

{
    current: {
        start: {
            transform: 'translate(0, 0)',
        },
        end: {
            transform: 'translate(-20%, 0)',
            transition: 'transform .4s ease-out'
        }
    },
    next: {
        start: {
            transform: 'translate(100%, 0)',
        },
        end: {
            transform: 'translate(0, 0)',
            transition: 'transform .4s ease-out',
        }
    }
}

The biggest problem is that the built-in animation functions have 8 style permutations. However, in practice, the back animations are just the other 4 in reverse.

@devgeeks devgeeks added this to the v1.0.0 milestone Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant