enter on login + animate in snaptobus

This commit is contained in:
STEINNI
2025-09-22 19:49:33 +00:00
parent 1641f5b07e
commit 7c6047462f
4 changed files with 30 additions and 133 deletions
+9 -2
View File
@@ -115,8 +115,15 @@ class Snaptobus{
console.log(`found ${snaps.length} snaps`)
snaps.forEach(snapEl => {
const newAttr = this.assignFromConfig(payload, snapDef.assign)
console.log('newAttr:',newAttr)
snapEl.attr(newAttr)
if(snapDef.animate){
snapEl.animate(
newAttr,
400,
mina.linear
)
} else {
snapEl.attr(newAttr)
}
})
}
}