Skip to content

Animate reading time on language swap#99

Draft
injoon5 wants to merge 1 commit into
mainfrom
cursor/read-time-lang-animation-1ca7
Draft

Animate reading time on language swap#99
injoon5 wants to merge 1 commit into
mainfrom
cursor/read-time-lang-animation-1ca7

Conversation

@injoon5
Copy link
Copy Markdown
Owner

@injoon5 injoon5 commented May 28, 2026

Summary

When switching language on blog and project detail pages, the title, date/description, and body already use the shared blurT transition keyed on displayLang. The reading-time line only updated via NumberFlow, so the minute count and suffix (min read / 분 읽기) swapped instantly while the rest of the header blurred.

This wraps the reading-time NumberFlow in the same {#each [displayLang]} grid + blurT pattern as the date and description.

Test plan

  • Open a bilingual blog post (e.g. /blog/now-listening)
  • Toggle EN ↔ KO and confirm reading time blurs in/out with the date/title
  • Repeat on a bilingual project page
  • With reduced motion enabled, confirm no blur flash on load or lang change
Open in Web Open in Cursor 

Wrap the NumberFlow reading-time block in the same displayLang blur
transition used for titles and descriptions so the minute count and
localized suffix crossfade together when switching languages.

Co-authored-by: Injoon Oh <injoon5@icloud.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Error Error May 28, 2026 12:09pm

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65ecec6
Status:🚫  Build failed.

View logs

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.

2 participants