---
area: "Changes"
parent: "Changes"
url: "https://unpoly.com/changes/0.24.0"
released: "2016-04-07"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [Changes](https://unpoly.com/changes.md)</nav>

# Version 0.24.0

Released on April 07, 2016 with [9 commits](https://github.com/unpoly/unpoly/commits/v0.24.0)

## Compatible changes {#compatible-changes}

- New function [`up.modal.extract()`](https://unpoly.com/api/up.modal.extract.md) to open a modal from an existing HTML string.
- [`up.ajax()`](https://unpoly.com/api/up.ajax.md) now also accepts the URL as a first string argument.
- [Expanded](https://unpoly.com/up.expand) links to modals or popups now get a pointer cursor via CSS
- New options for [up.modal.config](https://unpoly.com/api/up.modal.config.md):
  - `up.modal.config.openDuration`
  - `up.modal.config.closeDuration`
  - `up.modal.config.openEasing`
  - `up.modal.config.closeEasing`
  - `up.modal.config.backdropOpenAnimation`
  - `up.modal.config.backdropCloseAnimation`
  - Also see the breaking changes regarding modal structure below.
- Calling [`up.motion.finish()`](https://unpoly.com/api/up.motion.finish.md) without arguments will now complete all animations and transitions on the screen.
- Fix a bug where [`up.motion.finish()`](https://unpoly.com/api/up.motion.finish.md) would not cancel CSS transitions that were still in progress.
- Fix a bug where [`.up-active`](https://unpoly.com/api/up-active.md) classes where not removed from links when the destination was already [preloaded](https://unpoly.com/up.preload).

## Breaking changes {#breaking-changes}

- ⚠️ Animations when opening or closing a [modal](https://unpoly.com/up.modal) now only affect the viewport around the dialog. The backdrop is animated separately. This allows animations like "zoom in", which would look strange if the backdrop would zoom in together with the dialog.

- ⚠️ The modal's HTML structure has been changed to include a `.up-modal-backdrop` element:

  ```
  <div class="up-modal">
  <div class="up-modal-backdrop">
  <div class="up-modal-viewport">
    <div class="up-modal-dialog">
      <div class="up-modal-content">
        ...
      </div>
      <div class="up-modal-close" up-close>X</div>
    </div>
  </div>
  </div>
  ```

- ⚠️ The `z-index` properties for modal elements have been [changed](https://github.com/unpoly/unpoly/blob/master/lib/assets/stylesheets/unpoly/modal.css.sass). They might change again in the future.

- ⚠️ The modal will now take over the document's scrollbars after the open animation has finished. In earlier versions the modal took over as soon as the animation had started.

- ⚠️ Calling [`up.motion.finish()`](https://unpoly.com/api/up.motion.finish.md) with an element will now also complete animations/transitions on children of the given element.

