Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Jul 6, 2023
1 parent 1ceb5fc commit faff3ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ const swup = new Swup({
]
});
```
When a rule matches for a visit, the plugin will:
When a rule matches for a visit, the plugin will

- **overwrite** the [`containers`](https://swup.js.org/options/#containers) with the rule's `fragments`
- **change** the [`containers`](https://swup.js.org/options/#containers) to the rule's `fragments`
- **preserve** the current scroll position
- set the [`animationScope`](https://swup.js.org/options/#animation-scope) to `containers` for **scoped animations** for the fragments only
- set the [`animationScope`](https://swup.js.org/options/#animation-scope) to `containers` for **scoped animations** on the fragments only
- if the current `rule` has a `name` (e.g. "my-route"), that will be reflected as a class `.to-my-route` on the fragment.

```css
Expand Down

0 comments on commit faff3ac

Please sign in to comment.