swup / parallel-plugin

A swup plugin for animating the previous and next page in parallel  🎏

Home Page:https://swup.js.org/plugins/parallel-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `content:insert` and `content:remove` hooks

daun opened this issue · comments

Describe the problem

  • There's currently no way of accessing the new container before it's inserted into the dom
  • This makes debugging and adding initial styles to containers harder than necessary
  • Discussed in #8

Describe the proposed solution

  • Create a new hook content:insert
  • Create a new hook content:remove
  • Or maybe content:enter and content:leave

Alternatives considered

  • Modify the HTML with initial styles

How important is this feature to you?

  • Nice to have
  • Would make my life a lot easier
  • I cannot use swup without it