Fork me on GitHub
#reagent
<
2019-03-05
>
kwladyka20:03:10

How to add slide down, when items remove? For example I have:

1
2
3
4
5
All this items when appear slide left->right, when disappear slide right->left. This one I achieved. But when remove item 3 I want item 1 and 2 slide down to right position. Not sure how to do it with reagent. Do you know how to move item in new positions by slide instead of 0 sec. jump?

kwladyka20:03:39

not sure if it is even possible in that way

kwladyka21:03:07

I want items to move down gently, not jump when items under are removed

kwladyka21:03:37

How do you solve it?

kwladyka21:03:43

Only add transition / animation and count new position from the bottom? No better solution? Like just move to new position slower if position is changing,

kwladyka21:03:02

Hmm I think no other way to use transition and change hight of an element or something like that

Ramzi21:03:43

How am I supposed to connect an index.html file I just made to a fresh reagent project?

Ramzi21:03:00

Redraw it in hiccup, or is there a way to include the html file?

kwladyka21:03:29

use figwheel-main

kwladyka21:03:58

not sure if understand your question

Ramzi21:03:03

Im using figwheel.

kwladyka21:03:13

If not please precise your question. Not sure what you want to achieve.

Ramzi21:03:04

Yes, thank you. You show how to link to the compiled js out

kwladyka21:03:04

You should have something similar in your resources/public/index.html

Ramzi21:03:55

there is no public index html

kwladyka21:03:44

I don’t remember how figwheel doing this. I am using figwheel-main a long time. I thought there is index.html file too.

kwladyka21:03:53

Sorry for confusion then

Ramzi21:03:06

why is figwheel-main better than figwheel

kwladyka21:03:22

because figwheel-main is next version of figwheel

kwladyka21:03:37

it is figwheel-v2 - probably I can call it like that

kwladyka21:03:30

#figwheel-main