Skip to content

Animate composer flying up on send#13274

Open
jancborchardt wants to merge 1 commit into
mainfrom
feat/composer-send-animation
Open

Animate composer flying up on send#13274
jancborchardt wants to merge 1 commit into
mainfrom
feat/composer-send-animation

Conversation

@jancborchardt

Copy link
Copy Markdown
Member

Part of the general animation initiative nextcloud/server#47739

Nice animation for the composer modal flying out to the top on sending, like Apple Mail does. (Also then coming back from the top on clicking "Undo" to make it symmetrical.)

The animation starts instantly so the perceived performance is good and not blocked by other actions that can be done in the background, like the draft handling, moving to Outbox, etc.

If prefers-reduced-motion is set, of course there is no animation.

Before

Sending.now.webm

After

Send.animation.webm

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kra-mo kra-mo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, looks pretty good but

  1. The code looks way too complex for this. Not really my territory, but I'm sure it could be simplified.
  2. It doesn't look nice that the dark fade behind the modal still disappears instantly. It should probably crossfade out while the modal is animating.

@kra-mo

kra-mo commented Jul 9, 2026

Copy link
Copy Markdown
Member

Also, I wonder if we should change the send icon to ↑ like Apple Mail so the animation makes a bit more sense:

image

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
@jancborchardt jancborchardt force-pushed the feat/composer-send-animation branch from 7af5a3e to 089c855 Compare July 9, 2026 14:29
@jancborchardt

jancborchardt commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

Updated, yeah looks better with the opacity fade:
(And code also simplified a bit)

Screencast.From.2026-07-09.16-49-09.webm

@jancborchardt

Copy link
Copy Markdown
Member Author

Also, I wonder if we should change the send icon to ↑ like Apple Mail so the animation makes a bit more sense:
image

Not sure about this one. The "Sent" folder uses the "paper plane" icon as well, and it would be nice to use the same for that. And an "up arrow" would look quite odd there?

@kra-mo

kra-mo commented Jul 9, 2026

Copy link
Copy Markdown
Member

Not sure about this one. The "Sent" folder uses the "paper plane" icon as well, and it would be nice to use the same for that. And an "up arrow" would look quite odd there?

Apple Mail has the same split. Paper plane for folder and arrow for the action.

@nimishavijay

Copy link
Copy Markdown
Member

We don't have many sliding-type animations do we? So while I quite like the animation itself I'm worried it's a bit out of place with our design language. Also, the opacity fade could be a component-level thing too, it's nice!

And FYI the floating composer is planned for the next release, so this won't be very visible in the first place? cc @ChristophWurst @GretaD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants