Skip to content

Commit

Permalink
Merge pull request #73 from swup/feat/make-cache-adjustable
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso authored Apr 13, 2024
2 parents 43d235c + 7307380 commit d675657
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 111 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ The plugin respects custom animations set on the form using the `data-swup-anima

```html
<!-- Animate with an 'overlay' custom animation -->
<form action="/" data-swup-form data-swup-animation="overlay">
<form action="/" data-swup-form data-swup-animation="overlay"></form>
```

## Inline Forms

If you give a form an additional attribute `[data-swup-inline-form]`, swup will:
Expand All @@ -65,12 +66,15 @@ If you give a form an additional attribute `[data-swup-inline-form]`, swup will:
### Example

**HTML**

```html
<form id="form-1" class="transition-form" data-swup-form data-swup-inline-form method="POST">
<input name="test"></input> <input type="submit"></input>
</form>
```

**CSS**

```css
.transition-form.is-changing {
transition: opacity 200ms;
Expand Down
Loading

0 comments on commit d675657

Please sign in to comment.