This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-07
Channels
- # beginners (49)
- # boot (48)
- # cider (5)
- # cljs-dev (6)
- # clojure (165)
- # clojure-android (1)
- # clojure-austin (1)
- # clojure-india (2)
- # clojure-italy (23)
- # clojure-nl (2)
- # clojure-poland (4)
- # clojure-russia (63)
- # clojure-spec (5)
- # clojure-uk (121)
- # clojurescript (187)
- # core-async (1)
- # core-logic (4)
- # cursive (17)
- # datascript (1)
- # datomic (12)
- # emacs (2)
- # funcool (3)
- # hoplon (2)
- # jobs (7)
- # juxt (6)
- # lambdaisland (1)
- # luminus (2)
- # lumo (20)
- # midje (8)
- # off-topic (11)
- # om (38)
- # onyx (42)
- # pedestal (6)
- # planck (23)
- # protorepl (29)
- # ring (3)
- # rum (23)
- # spacemacs (6)
- # untangled (70)
- # vim (1)
Hey everyone. I am seeking some advice on how to do some simple UI stuff. I'm assuming this is the right channel as I am using Rum. I want to simply fade out the logo and then attach it to the top of the screen. This is the current iteration of the website. https://shire-campaign.netlify.com/
I'm wondering if this is best done in Rum or using Element Queries. http://elementqueries.com/
@grounded_sage this is more of frontend question in general
Cheers. I wasn't sure whether Rum would have an impact on using it and like React apparently has an impact on using Greensock animations
(defn slider [children]
(js/React.createElement js/Slider
#js {:dots true
:infinite true
:arrows false
:speed 500
:slidesToShow 1
:slidesToScroll 1}
(clj->js children))))
@mruzekw Ideally, you want to pass React children in your slider function. Ie, already compiled stuff, then there won't be any runtime overhead.
So you should prefer (slider (html [:div "foo]))
which will be precompiled, instead of (slider [:div "foo"])
and then compile during runtime
The html macro only does hiccup (ie clojure datastructures) -> React.createElement
calls
I am looking for HTML/CSS for components like the Semantic UI Popup and Dropdown, that could be adapted to be Rum components. I would really like to get rid of semantic.js and its dependency on jquery. Any suggestions?