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.
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).
Phù hợp với ai
Frontend dev, UI/UX designer, ai cần prototype visual nhanh hoặc sinh CSS chuẩn copy-paste cho dự án Tailwind/React/Vue.
Câu hỏi thường gặp
CSS sinh ra có dùng được với Tailwind không?
Có. Output là CSS chuẩn vanilla, paste vào file .css bất kỳ. Nếu dự án dùng Tailwind, có thể đặt vào layer @utilities hoặc theme override.
Có hỗ trợ trình duyệt cũ không?
Output dùng cú pháp CSS modern (custom properties, grid, gap). Hoạt động tốt trên Chrome/Firefox/Safari 2020+. IE11 KHÔNG được hỗ trợ.
Công cụ liên quan
Xem tất cả công cụ →Color Picker
Pick HEX/RGB/HSL, slider RGB, 12 màu mẫu, gợi ý tên Tailwind gần nhất.
MỚITailwind ↔ CSS Converter
Convert giữa Tailwind utility classes và CSS thuần. ~200 utility (spacing, color, flex, grid…). Hỗ trợ migrate dự án.
MỚISVG → React/JSX
Convert SVG sang React component. camelCase attribute, currentColor, TypeScript types, size/color props.
MỚICSS Filter Builder
Visual builder cho CSS filter — blur, brightness, sepia, hue-rotate, drop-shadow. 8 preset (Vintage, Polaroid, Noir…).