Skip to content

Commit

Permalink
move section
Browse files Browse the repository at this point in the history
  • Loading branch information
demarketed committed Nov 22, 2024
1 parent 189caaa commit 832e089
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ Or from the HTML:
</script>
```

### With Astro View Transitions

You can use the polyfill with [Astro view transitions](https://docs.astro.build/en/guides/view-transitions/) by importing the script in the document as you would normally. For example, within a component:

```html
<script src="view-transitions-polyfill"></script>
```

## Compatibility

The polyfill currently requires the browser to support these notable features:
Expand All @@ -48,14 +56,6 @@ The polyfill currently requires the browser to support these notable features:
- [CSS :where() selector](https://developer.mozilla.org/en-US/docs/Web/CSS/:where)
- [Array.findLast()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast)

### With Astro View Transitions

You can use the polyfill with [Astro view transitions](https://docs.astro.build/en/guides/view-transitions/) by importing the script in the document as you would normally. For example, within a component:

```html
<script src="view-transitions-polyfill"></script>
```

## Development

### Building
Expand Down

0 comments on commit 832e089

Please sign in to comment.