Using Om, I've set up a component that I want to reveal when a user presses a button. The effect should be that the div slides in from the right. What is the best way to structure this in am Om project?
I can't do something hacky like:
(let [the-div (. js/document (.getElementById "the-div"))]
(.setAttribute dashboard "width" "500px"))
Because I think om sets up the components in the shadow dom, and I get an error: Cannot read property 'style' of null
.
Can anyone point me in the right direction of achieving this effect? Program structure or any tips would be much appreciated.