Fork me on GitHub
#clojurescript
<
2023-03-29
>
Lidor Cohen07:03:06

Did anyone experiment (or knows about experiments) with prototype-based programming / Metaobject Protocol in Clojure/Script?

M J13:03:23

hi, lets say i have the following (def element (.getElementById js/document "page-title-11004")] i hve this element, how do check in clojurescript if it is in the viewport, or hidden i wanna check if it is on screen visible, or it was hidden from a scroll because if we scrolled too much and it was hidden, want to make another div slide from top of the screen. So question 2 is, how do I target a div I have fixed at the top, and make it slide from top afte I check that element is hidden

p-himik13:03:33

Once again, this question has nothing to do with CLJS. You gotta figure out how to do it in plain JS and then translate that to CLJS, which should be some trivial interop - either with a built-in API or some NPM package, depending on what you want exactly.

phill16:03:15

If you would like to find a good forum for "dynamic HTML" questions, you could ask on #C03RZGPG3 and perhaps get some interesting advice

M J05:03:35

ok thanks