Leave a Reply

Your email address will not be published. Required fields are marked *

/* Dán vào Flatsome > Advanced > Global Settings > Footer Scripts, bọc trong */ (function () { var d = document; d.documentElement.classList.add('cl-js'); function showAll() { d.querySelectorAll('.cl-reveal').forEach(function (e) { e.classList.add('cl-in'); }); } function init() { var els = d.querySelectorAll('.cl-reveal'); if (!('IntersectionObserver' in window)) { showAll(); return; } var io = new IntersectionObserver(function (entries) { entries.forEach(function (x) { if (x.isIntersecting) { x.target.classList.add('cl-in'); io.unobserve(x.target); } }); }, { threshold: 0.12 }); els.forEach(function (e) { io.observe(e); }); setTimeout(showAll, 6000); /* phòng khi observer không chạy */ } if (d.readyState !== 'loading') init(); else d.addEventListener('DOMContentLoaded', init); })();