b
Size: a a a
b
b
let preloader = document.querySelector('.preloader');
let loadTransition = getComputedStyle(preloader);
let loadDuration = parseFloat(loadTransition.transition.match(/\d+/));
window.addEventListener('load', (event) => {
preloader.classList.add('load');
setTimeout(() => {
document.body.classList.remove('lock');
preloader.remove();
}, loadDuration * 1000)
});b
b
b
b
b
b
b
b

YK
А
ES
ES