الگو:کادر-شمارنده

نسخهٔ تاریخ ‏۶ سپتامبر ۲۰۲۵، ساعت ۲۰:۴۴ توسط Admin (بحث | مشارکت‌ها)
 <img src="40px-Icon_example.png" alt="آیکن" style="margin-bottom:8px;" />
تعداد آیتم‌ها
1

<script>

 let count = 1;
 const max = 67;
 const speed = 40; // سرعت شمارش (میلی‌ثانیه)
 const counter = document.getElementById("animated-counter");
 const interval = setInterval(() => {
   count++;
   counter.textContent = count;
   if (count >= max) clearInterval(interval);
 }, speed);

</script>