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

Reverse key direction #10

Open
michaelrafailyk opened this issue Feb 1, 2021 · 0 comments
Open

Reverse key direction #10

michaelrafailyk opened this issue Feb 1, 2021 · 0 comments
Labels
question Further information is requested

Comments

@michaelrafailyk
Copy link
Owner

michaelrafailyk commented Feb 1, 2021

On animation logic right now the bottom of the viewport is a -100vh but on CSS logic it is a 100vh. I have a solution how to support existed syntax and new reversed syntax at the same time. But need to decide – should the keys direction be reversed by default to fit CSS standard logic or not?

Existed syntax (scrolling down, element moving up):

<div data-animation="opacity: {-20vh: 1, 0vh: .5, 10vh: 1}"></div>

New reversed syntax (scrolling down, element moving up):

<div data-animation="opacity: {20vh: 1, 0vh: .5, -10vh: 1}"></div>
@michaelrafailyk michaelrafailyk added the question Further information is requested label Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant