Skip to content

Default transition#185

Open
nerdyman wants to merge 13 commits intomainfrom
feat/default-transition
Open

Default transition#185
nerdyman wants to merge 13 commits intomainfrom
feat/default-transition

Conversation

@nerdyman
Copy link
Owner

@nerdyman nerdyman commented Feb 14, 2026

  • Defaults transition property to 0.15s ease-out when user does not have prefers-reduced-motion set
  • Uses CSS.registerProperty API to performantly animate elements, Safari is especially bad at keeping things in sync when they have their own transition properties - this resolves it by centralising the transition
  • Exports consts module from lib
  • Removes hasWindowContextBinding logic
  • Updates data-rcs values
  • Updates tests to handle new transition and data-rcs props
  • Adds test utils to emulate prefers-reduced-motion
  • Adds basic Node.js tests to cover pure SSR
  • Upgrades deps
  • Updates readme docs
  • Closes Apply a default transition #163

@nerdyman nerdyman added this to the v4 milestone Feb 14, 2026
@nerdyman nerdyman self-assigned this Feb 14, 2026
@nerdyman nerdyman added the enhancement New feature or request label Feb 14, 2026
@vercel
Copy link

vercel bot commented Feb 14, 2026

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

Project Deployment Actions Updated (UTC)
react-compare-slider Ready Ready Preview Feb 14, 2026 3:39pm

@github-actions
Copy link

github-actions bot commented Feb 14, 2026

Size Change: +820 B (+9.09%) 🔍

Total Size: 9.84 kB

Filename Size Change
dist/components/index.cjs 194 B +48 B (+32.88%) 🚨
dist/components/index.mjs 152 B +1 B (+0.66%)
dist/consts.cjs 249 B +249 B (new file) 🆕
dist/consts.mjs 203 B +203 B (new file) 🆕
dist/hooks-ChgvAofo.cjs 0 B -1.04 kB (removed) 🏆
dist/hooks-S3SVZpZ5.mjs 0 B -1.02 kB (removed) 🏆
dist/hooks.cjs 1.16 kB +1.05 kB (+1021.36%) 🆘
dist/hooks.mjs 1.13 kB +1.02 kB (+983.65%) 🆘
dist/index.cjs 504 B +29 B (+6.11%) 🔍
dist/index.mjs 486 B -12 B (-2.41%)
dist/internal-hooks-BZKjJSd2.cjs 397 B +397 B (new file) 🆕
dist/internal-hooks-C-u7HBpW.mjs 346 B +346 B (new file) 🆕
dist/internal-hooks-CFtUHzSH.cjs 0 B -495 B (removed) 🏆
dist/internal-hooks-OMrPT5lO.mjs 0 B -446 B (removed) 🏆
dist/register-a5K3y5AN.cjs 300 B +300 B (new file) 🆕
dist/register-BF973rpu.mjs 265 B +265 B (new file) 🆕
dist/root-B2soUTKa.mjs 0 B -2.23 kB (removed) 🏆
dist/root-D5Cy89F9.mjs 2.18 kB +2.18 kB (new file) 🆕
dist/root-Dw3WqC42.cjs 0 B -2.27 kB (removed) 🏆
dist/root-n4ClQr0p.cjs 2.24 kB +2.24 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
dist/types.cjs 20 B
dist/types.mjs 20 B

compressed-size-action

@sonarqubecloud
Copy link

@nerdyman nerdyman added the publish-preview Publish a preview package label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request publish-preview Publish a preview package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply a default transition

1 participant