Skip to content

Provide an API to disable animations and transitions #16246

Closed as not planned
Closed as not planned
@gyzerok

Description

@gyzerok

Describe the problem

There are couple of cases when it might be sensible to disable animations and transitions:

  1. user wants to disable them due to some disability or because they don't want them;
  2. user might have a slower device and we would like to gradually degrade in order to keep UI responsive for them

Either I am missing something in the docs or there is no way to disable animations (basically making them noop) in Svelte currently.

Describe the proposed solution

While it's possible to do in user-space by wrapping all the transitions from Svelte inside your own transitions and creating an flag that would make them noop, I believe it'd be unnecessary complex.

Personally don't have an opinion on how this API should look like. I trust Svelte team to have a better vision for this.

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions