swup / parallel-plugin

A swup plugin for animating the previous and next page in parallel  🎏
https://swup.js.org/plugins/parallel-plugin
MIT License
6 stars 1 forks source link

Wrap content insertion in hooks #12

Closed daun closed 10 months ago

daun commented 10 months ago

Description

Checks

Additional information

Closes #11

daun commented 10 months ago

Having content: in there is important to understand that this is analogous to and replaces swup's own content: hook. Instead of replacing (content:replace), we're now first inserting (content:insert) and then removing (content:remove).

Same as content:focus and content:announce for a11y plugin. I'd rather go for self-explaining names than knowing which plugin triggered this exactly.

hirasso commented 10 months ago

Ah, didn't catch that content:replace is actually being replaced! Good to go then :)