Skip to Content
FoundationsCalsAnimations (애니메이션)

Animations (애니메이션)

Cals의 애니메이션 시스템은 Foundation과 완전히 동일합니다.

Foundation 상속

Cals는 Foundation의 Transition Duration과 Easing Functions를 모두 상속합니다.

Transition Duration

토큰시간사용 사례
fast150msHover, Focus, Small Changes
base200msModal Open/Close, Dropdown (기본)
slow300msSlide Animation, Large Changes

실전 예제 - Booking Status Animation

import { Badge } from "@vortex/ui-cals"; export default function BookingAnimation() { const [status, setStatus] = useState("available"); return ( <div className="p-md bg-white border rounded-lg"> <div className="transition-all duration-200"> <Badge variant={`booking-${status}`}> {status === "available" && "예약 가능"} {status === "pending" && "예약 대기"} {status === "confirmed" && "예약 확정"} </Badge> </div> <button onClick={() => setStatus("confirmed")} className="mt-md px-md py-sm bg-cals-primary-500 text-white rounded transition-all duration-150 hover:bg-cals-primary-600 hover:scale-105" > 예약하기 </button> </div> ); }

다음 단계

Last updated on