1window.addEventListener("load", function () { 2 // ãã¼ã¸ãã¼ãæã«ã¹ã¯ãã¼ã«ä½ç½®ããªã»ãã 3 window.scrollTo(0, 0); 4 5 const text = document.querySelector('#load_animation .text'); 6 const logo = document.querySelector('#load_animation .logo'); 7 const logo_img = document.querySelector('#load_animation .logo img'); 8 const whiteScreen = document.querySelector('#load_animation .white-screen'); 9 const greyScreen = document.querySelector('#load_animation .grey-screen'); 10 const topImage = document.querySelector('.mainimg .slide-image'); 11 const loadAnimation = document.querySelector('#load_animation'); 12 const body = document.querySelector('body'); 13 14 // ãã¼ã¸ãã¼ãæã«ã¹ã¯ãã¼ã«ãç¡å¹ã«ãã 15 body.style.overflow = 'hidden'; 16 17 /* 18 // Step 1: ããã¹ãããã§ã¼ãã¤ã³ã¨ä¸æ¹åã®ç§»åã§è¡¨ç¤º 19 setTimeout(() => { 20 text.style.opacity = 1; 21 text.style.transform = 'translateY(0)'; 22 }, 0); // åæãã¼ãå¾ã«å¾ã ã«è¡¨ç¤ºãããããã«é å»¶ 23 24 // Step 2: ããã¹ããé表示 25 setTimeout(() => { 26 text.style.opacity = 0; 27 text.style.transform = 'translateY(-20px)'; 28 }, 1000); 29 */ 30 31 // Step 3: ããã¹ããæ¶ããå¾ã«ãã´ã表示 32 setTimeout(() => { 33 logo.style.opacity = 1; 34 }, 0); 35 36 // Step 4: ã°ã¬ã¼ã¹ã¯ãªã¼ã³ãç§»å 37 setTimeout(() => { 38 greyScreen.style.animation = 'slideIn 0.5s forwards'; 39 setTimeout(() => { 40 greyScreen.style.animation = 'slideOut 0.5s forwards'; 41 whiteScreen.style.display = 'none'; 42 logo.style.opacity = 0; 43 setTimeout(() => { 44 body.classList.remove('no_scroll'); // ã¢ãã¡ã¼ã·ã§ã³å®äºå¾ã«ã¹ã¯ãã¼ã«ãæå¹ã«ãã 45 body.style.overflow = ''; // ã¹ã¯ãã¼ã«ãå度æå¹ã«ãã 46 if (typeof Lenis !== 'undefined') { 47 lenis.start(); 48 } 49 // loadAnimationãé表示ã«ãã 50 loadAnimation.style.display = 'none'; 51 }, 500); // slideOutã¢ãã¡ã¼ã·ã§ã³ã®æé 52 }, 500); // slideInã¢ãã¡ã¼ã·ã§ã³ã®æé 53 }, 2500); 54 body.classList.add('no_scroll'); 55 if (typeof Lenis !== 'undefined') { 56 lenis.stop(); 57 } 58});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.