:before
or :after
pseudo-selectors are now scrolled into view after insertion.up.layout.defaults('snap')
lets you define a number of pixels under which Unpoly will snap to the top edge of the viewport when revealing an elementup.reveal()
aware of fixed navigation bars blocking the viewport by setting new options up.layout.defaults('fixedTop')
and up.layout.defaults('fixedBottom')
.
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js
are not considered breaking changes.
See our upgrading guide for details.