This may not be a satisfactory answer but you could just do it with CSS animations. Doing it in elm requires that the state reside somewhere in the model. There's no "state" part like in React (now considered mostly a bad practice even in that community).
On Friday, May 27, 2016 at 4:46:06 AM UTC-6, John Watson wrote: > > If I have a bunch of buttons that all need to respond to mouseOver 'hover' > in the same way, what's the best practice for implementing this in elm? I > have so far looked at mdgriffith/elm-style-animation. This seems fine > although I wondered if using this for such simple behaviour was overkill. > As far as I can see I need to keep track of state for each button and > allocate an id to each. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
