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
Copy link
Copy Markdown
Contributor

@pkvach pkvach commented Apr 14, 2026

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

…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 0b60e5d to 361c45e Compare May 1, 2026 21:53
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

1 participant