fix: spでもgab-animationが消去されるように修正

This commit is contained in:
yuki540 2018-04-14 22:55:37 +09:00
parent 2241e45737
commit ba139f4453

View File

@ -79,7 +79,8 @@ export const startGabAnimation = () => {
gab_animation.setAttribute('data-state', 'start') gab_animation.setAttribute('data-state', 'start')
gab_animation__end_block.addEventListener('animationend', e => { gab_animation__end_block.addEventListener('animationend', e => {
if(e.animationName === 'gab-animation__close') { if(e.animationName === 'gab-animation__close'
|| e.animationName === 'gab-animation__close__sp') {
root.removeChild(gab_animation) root.removeChild(gab_animation)
} }
}) })