facebook / facebook/stylex

Define API for View Transition

Open
#866 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
10.3k
Forks
481
Avg merge
3d 8h
Merged PRs (30d)
13

Description

Define an API to support the CSS pseudo-elements and `@`-rules that are part of the [View Transition API](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API).

```css
::view-transition-group()
::view-transition-image-pair()
::view-transition-old()
::view-transition-new()
```

For example:

```tsx
const viewTransition = stylex.viewTransition({
group?: {},
imagePair?: {},
old?: {},
new?: {},
});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.