Thirty ways to switch
Transitions
Pick an effect, tune it, and run it on this very page. The code on the right is what you would write to get exactly this.
Controls
Sets the duration to 0, which takes the same instant path as the system setting. Your own system setting wins: with "Reduce motion" turned on, every effect here is skipped whatever this switch says. Your system has no preference.
The effect covers the whole page, not this card.
Source
<PenumbraToggle transition="circle" :duration="600" />export default defineNuxtConfig({
modules: ['@nuxtjs/color-mode', 'nuxt-penumbra'],
penumbra: {
transition: 'circle',
duration: 600,
},
})Direction and origin are per call: they are not config options. The component reveals from the click.