Skip to content

Conversation

@tizu69
Copy link

@tizu69 tizu69 commented Mar 15, 2025

Fixes #15519.

This adds transition strategies to crossfade, which impact how the transition transitions.
Next to "scale" (or undefined, for backwards compat) which does what crossfade does already, "size" does not stretch the element, but changes its size instead.

@svelte-docs-bot
Copy link

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: d97b170

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tizu69
Copy link
Author

tizu69 commented Mar 17, 2025

🦋 Changeset detected

mate that changeset has been here this whole time

@github-actions
Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@15520

@Rich-Harris
Copy link
Member

Thanks for the PR — can you give an example (ideally in the playground) of when you would use size?

@Rich-Harris
Copy link
Member

Closing as stale

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.

Crossfade transition: Transition strategies

2 participants