This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-29
Channels
- # admin-announcements (1)
- # announcements (20)
- # babashka (43)
- # beginners (134)
- # calva (2)
- # clerk (7)
- # cljdoc (9)
- # clojars (8)
- # clojure (91)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (1)
- # clojurescript (5)
- # datahike (3)
- # docker (2)
- # emacs (6)
- # fulcro (7)
- # graphql (9)
- # honeysql (24)
- # improve-getting-started (5)
- # introduce-yourself (1)
- # lambdaisland (1)
- # luminus (3)
- # malli (3)
- # nbb (19)
- # off-topic (22)
- # pathom (1)
- # portal (3)
- # practicalli (1)
- # rdf (26)
- # reagent (29)
- # reitit (9)
- # shadow-cljs (15)
- # spacemacs (3)
- # sql (4)
- # tools-build (30)
- # xtdb (41)
Did anyone experiment (or knows about experiments) with prototype-based programming / Metaobject Protocol in Clojure/Script?
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
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.