Skip to content

js/css: Animate comment insertion and deletion (fade-in/out, smooth scroll) - #1105

Open
pkvach wants to merge 1 commit into
isso-comments:masterfrom
pkvach:feat/animate-comment-insert-delete
Open

js/css: Animate comment insertion and deletion (fade-in/out, smooth scroll)#1105
pkvach wants to merge 1 commit into
isso-comments:masterfrom
pkvach:feat/animate-comment-insert-delete

Conversation

@pkvach

@pkvach pkvach commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • All new and existing tests are passing
  • (If adding features:) I have added tests to cover my changes
  • (If docs changes needed:) I have updated the documentation accordingly.
  • I have added an entry to CHANGES.rst because this is a user-facing change or an important bugfix
  • I have written proper commit message(s)

What changes does this Pull Request introduce?

Add a lightweight animations module to animate comment insertion, reveal and removal using CSS keyframes plus a small JS helper for smooth scrolling and reliable animation end detection.

Integrates into the comment insert/remove flow and respects prefers-reduced-motion.

Animations are opt-in via the animations config option (default: false) and fall back to instant behaviour when disabled or unsupported.

How to verify:

  • Enable animations in config.
  • Add/delete comments and observe fade/scroll effects.
  • Test with prefers-reduced-motion to ensure animations are disabled.

Why is this necessary?

Closes #6

@pkvach
pkvach force-pushed the feat/animate-comment-insert-delete branch from 0b60e5d to 361c45e Compare May 1, 2026 21:53
@pkvach
pkvach force-pushed the feat/animate-comment-insert-delete branch from 361c45e to ad4a69d Compare August 16, 2026 14:33
@jelmer

jelmer commented Aug 19, 2026

Copy link
Copy Markdown
Member

This LGTM, but probably also needs a review from somebody with more JavaScript experience.

@pkvach
pkvach force-pushed the feat/animate-comment-insert-delete branch 2 times, most recently from 125bc6b to 67f7a73 Compare August 25, 2026 22:18
…croll)

Add a lightweight animations module to animate comment insertion, reveal and removal using CSS keyframes plus a small JS helper for smooth scrolling and reliable animation end detection.
Integrates into the comment insert/remove flow and respects prefers-reduced-motion.
Animations are opt-in via the animations config option (default: false) and fall back to instant behaviour when disabled or unsupported.

Closes isso-comments#6
@pkvach
pkvach force-pushed the feat/animate-comment-insert-delete branch from 67f7a73 to d88a168 Compare August 27, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Animate insertion/deletion of comments, decide upon a lightweight animation library

2 participants