Skip to content

Integrating tippy.js with swup #966

Answered by hirasso
enlinquental asked this question in Help
Discussion options

You must be logged in to vote

You have installed the official astro integration of swup but then you have another initialization of swup in your main script (app_exp.js). That makes two swup instances working against each other.

There are two ways to resolve this:

  1. use swup directly: https://codesandbox.io/p/devbox/suspicious-sun-forked-yrdgrg
  2. use the astro integration together with globalInstance set to true: https://github.com/swup/astro?tab=readme-ov-file#configglobalinstance – If you decide to go that route, make sure to remove the id="swup" from your <main> element, otherwise it might overwrite window.swup

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@enlinquental
Comment options

@enlinquental
Comment options

Comment options

You must be logged in to vote
1 reply
@enlinquental
Comment options

Comment options

You must be logged in to vote
3 replies
@enlinquental
Comment options

@hirasso
Comment options

@enlinquental
Comment options

Comment options

You must be logged in to vote
3 replies
@enlinquental
Comment options

@hirasso
Comment options

@enlinquental
Comment options

Answer selected by enlinquental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants