Edit this page

up.motion form[up-transition]
HTML selector

Submits this form and swaps in the new fragment with an animated transition.

Example

<form action="/tasks"
  up-target=".content"
  up-transition="cross-fade">
  ...
</form>

Modifying attributes

Info

All attributes for form[up-submit] may also be used.

[up-transition] optional
[up-fail-transition] optional

The transition to use when the server responds with an error code.

See Handling failed responses.