enter on login + animate in snaptobus
This commit is contained in:
1 parent
1641f5b07e
commit
7c6047462f
4 files changed
+30
-133
No files matched your search
+9
-2
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user