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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common format for Animated helpers #5

Closed
andrewMacmurray opened this issue Jan 3, 2021 · 0 comments 路 Fixed by #10
Closed

Common format for Animated helpers #5

andrewMacmurray opened this issue Jan 3, 2021 · 0 comments 路 Fixed by #10
Labels
enhancement New feature or request

Comments

@andrewMacmurray
Copy link
Owner

andrewMacmurray commented Jan 3, 2021

I only just thought of this after I published 1.0.0 馃う but using a record to inject external dependencies (like for elm-ui https://package.elm-lang.org/packages/andrewMacmurray/elm-simple-animation/latest/Simple-Animated#UiOptions) could be a nice, low mental overhead pattern to use for other ones

So Simple.Animated.svg would become:

animatedSvg =
    Simple.Animated.svg
        { class = Svg.Attributes.class
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant