Skip to content

Commit b64e465

Browse files
author
Adam Argyle
committed
reverse after out animations
1 parent 51bd90a commit b64e465

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/js/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ $('select').on('change', e => {
4343
update(transition)
4444
})
4545

46-
$demo.on('animationend', e => {
47-
$demo.attr('transition', '')
48-
})
46+
$demo.on('animationend', e =>
47+
$demo.attr('transition', state.transition.includes('out')
48+
? state.transition.replace('out','in')
49+
: ''))

0 commit comments

Comments
 (0)