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

Properties not being animated after using Animation.exactly #50

Open
ethagnawl opened this issue Aug 4, 2017 · 0 comments
Open

Properties not being animated after using Animation.exactly #50

ethagnawl opened this issue Aug 4, 2017 · 0 comments

Comments

@ethagnawl
Copy link

I've noticed that if I use Animation.exactly to set some properties, those properties aren't animated/updated the next time they should be.

Animation.exactly and Animation.opacity (which, conveniently, happen to be defined next to each other) have the same return type (Animation.Model.Property), so I figured I'd be able to get away with using exactly throughout.

Here are the two variants of the piece of code in question:

-- works as expected
[ Animation.set
                    [ Animation.opacity 1
                    , Animation.scale 1.0
                    , Animation.exactly "z-index" "2"
                    ]
                ]
-- does not work as expected
-- opacity and scale are never updated 
[ Animation.set
                    [ Animation.exactly "opacity" "1"
                    , Animation.exactly "scale" "1.0"
                    , Animation.exactly "z-index" "2"
                    ]
                ]

Here's the relevant version information from my elm-package.json:

"dependencies": {
    "mdgriffith/elm-style-animation": "3.5.5 <= v < 4.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"

Please let me know if there's any additional information I can provide.

P.S. Aside from this issue, the library has been a joy to work with! 😸

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

No branches or pull requests

1 participant