Skip to content

Instantly share code, notes, and snippets.

@crashmax-dev
Created January 5, 2025 23:50
Show Gist options
  • Save crashmax-dev/002f85d7062fefbe179c6edbd0c02b04 to your computer and use it in GitHub Desktop.
Save crashmax-dev/002f85d7062fefbe179c6edbd0c02b04 to your computer and use it in GitHub Desktop.
app.mixin({
updated() {
const el = this.$el
if (el && el.style) {
el.style.transition = 'box-shadow 0.3s ease'
el.style.boxShadow = 'inset 0px 0px 0px 1px tomato'
setTimeout(() => {
el.style.boxShadow = ''
}, 300)
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment