Fork me on GitHub
#hyperfiddle
<
2024-04-20
>
Eric Dvorsak12:04:29

Are you going to propos a talk on Electric at the Heart of Clojure conference?

👀 4
Daniel Manila21:04:11

Has anyone done things with CSS animations in electric? Any examples? I know from react that animating things moving on and off of the dom can be a pain

grounded_sage02:04:33

It depends what you are doing. Without knowing context. You can add the css class for entry when you add the element and when you are to remove it add the exit and delay the removal of the element with a js timeout.

mattias11:04:19

We use such animations, it does make electric app feel a bit more like a regular SPA:

&.active {
    background: var(--purple100);
    color: var(--purple);
    animation: loading 2s infinite;
  }

👍 1