Elm-ui Dom.getElement


is there a way to get the position an element that was created with elm-ui? In case one doesn’t use elm-ui, Dom.getElement seems to do the job. I want to get the position of an item to check if it is in the viewport or not.

Best regards

If you add: Element.htmlAttribute <| Html.Attribute.id “yourid”

You can get it like you would do with normal Html

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.