fix: spでもgab-animationが消去されるように修正
This commit is contained in:
parent
2241e45737
commit
ba139f4453
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user