Код: Выделить всё
document.startViewTransition(() => { $('code-example').remove() })Как это происходит? Как глобальная переменная недоступна в функции обратного вызова?
Подробнее здесь: https://stackoverflow.com/questions/795 ... n-callback
Код: Выделить всё
document.startViewTransition(() => { $('code-example').remove() })