1.0.0 • Published 10 months ago
@newlogic-digital/swup-plugins v1.0.0
Swup Plugins
Usage
import { SwupCorePlugin } from '@newlogic-digital/swup-plugins'
new Swup({
plugins: [new SwupCorePlugin()]
})Info
SwupCorePlugin
1. Adds default options
{
ignoreVisit: (url, { el }) => el?.closest('[data-no-swup], [data-naja]'),
animationSelector: '.view-transition-main'
}2. Adds support for data-swup-replace attribute, replaces attribute upon content replace
<meta name="description" content="Replace me" data-swup-replace>