✨
CSS Animation Builder (Visual)
Visual builder cho CSS animation với 10 preset (fadeIn, bounce, pulse, spin, shake…). Tinh chỉnh duration, easing, iteration. Copy CSS sẵn dùng.
Hiệu ứng sẵn
Xem trước
CSS
Visual builder cho CSS animation. 10 preset đẹp + custom keyframes. Pattern @keyframes + animation shorthand chuẩn CSS.
CSS Animation 101
CSS animation gồm 2 phần: @keyframes định nghĩa các bước, và property animation áp dụng vào element.
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.element {
animation: fadeIn 0.5s ease-out forwards;
} Animation properties
- duration: thời gian (s/ms). 0.3-0.6s cho UI transition; 1-2s cho hero animation.
- timing-function (easing): tốc độ thay đổi.
ease: chậm-nhanh-chậm (mặc định).ease-out: nhanh đầu, chậm cuối — natural cho enter animation.ease-in: chậm đầu, nhanh cuối — exit animation.linear: đều — dùng cho rotate, progress bar.cubic-bezier(0.68, -0.55, 0.265, 1.55): overshoot bouncy.
- delay: chờ trước khi chạy.
- iteration-count: số lần lặp.
infinite= lặp mãi. - direction:
normal/reverse/alternate/alternate-reverse. - fill-mode:
forwardsgiữ frame cuối,backwardsgiữ frame đầu trước khi chạy.
Tip thực tế
- Page enter: fadeIn 0.4s + slideUp 0.5s ease-out forwards.
- Toast notification: slideDown 0.3s ease-out + fadeOut sau 3s.
- Loading spinner: spin 1s linear infinite.
- Heartbeat / pulse: pulse 1.5s ease-in-out infinite — alert quan trọng.
- Shake on error: shake 0.4s — dùng cho form validation fail.
- Performance: chỉ animate
transform+opacityđể GPU-accelerated. Tránh animatewidth,top,margin(CPU expensive).
Liên quan
Công cụ liên quan
Xem tất cả công cụ →MỚI
🔐
JWT Decoder
Decode JWT token, xem header/payload/claims với thời gian dễ đọc.
MỚI🎨
Format JSON
Format / minify / validate JSON. Sort key A-Z, custom indent, phím tắt Ctrl+Enter.
MỚI🔍
Regex Tester
Test regex realtime với highlight match. 7 mẫu sẵn cho VN (email, SĐT, CCCD, IP...).
MỚI🔑
UUID / Hash / Base64 / URL
Bundle 4 dev tool: UUID v4, SHA-256/512 hash, Base64 (URL-safe), URL encode.