RepositoryCSS
sophilabs

sophilabs/jquery-counter

jQuery.counter (javascript + css3)

164sao
36fork
7issue
2lượt xem

⏱️ jQuery.counter - Plugin đếm thời gian đa dạng cho jQuery

Một plugin jQuery nhỏ gọn dựa trên dự án jquery-countdown, mở rộng với nhiều tùy chọn và phương thức điều khiển.

jQuery.counter là một plugin jQuery sử dụng JavaScript kết hợp CSS3 để tạo hiệu ứng đồng hồ đếm thời gian. Dự án dựa trên jquery-countdown nhưng được bổ sung thêm nhiều tùy chọn cấu hình và phương thức điều khiển linh hoạt hơn. Phù hợp cho các ứng dụng cần hiển thị đồng hồ đếm ngược hoặc đếm tăng trên giao diện web.

✨ Điểm nổi bật

  • direction: up|down: Chọn hướng đếm, tăng dần hoặc giảm dần
  • format: string: Định dạng thời gian và giới hạn cho từng phần, ví dụ: 23:59:59
  • interval: number: Thiết lập thời gian giữa các bước đếm, mặc định 1000ms
  • stop: string: Xác định thời điểm dừng đồng hồ, ví dụ: 10:00 (10 phút)
  • play/reset/stop: Các phương thức điều khiển hoạt động của đồng hồ
  • counterStop: Sự kiện được kích hoạt khi đồng hồ đạt giới hạn
  • data-attributes: Cấu hình qua thuộc tính HTML hoặc object options khi khởi tạo
  • CSS3 animation: Hiệu ứng mượt mà nhờ sử dụng CSS3

💡 Vì sao đáng chú ý

Khác với các plugin đồng hồ thông thường chỉ hỗ trợ đếm ngược đơn giản, jQuery.counter cung cấp cả đếm ngược và đếm tăng, kết hợp với các phương thức điều khiển play, pause, reset giúp người dùng toàn quyền kiểm soát hoạt động của đồng hồ. Đặc biệt, việc hỗ trợ cả hai cách cấu hình qua data-attributes và options object giúp plugin linh hoạt tích hợp vào bất kỳ dự án nào.


#jQuery #jQueryPlugin #CSS3 #Counter #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryTypeScript
deepseek-ai/deepseek-harness

DeepSeek Harness: Everything is a Plugin.

290.1k
Nov 28, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

209.9k
Aug 12, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026