/*
 * @file        fx.css implementation and configuration.
 * @module      fragment-ux/src/fx/fx.css
 * @author      Jesse Oyofo Dan-Amuda
 * @company     Digitwhale Innovations LTD
 * @copyright   Copyright (c) 2026 Digitwhale Innovations LTD. All rights reserved.
 * @license     MIT
 * @since       0.1.0
 */

@keyframes fx-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fx-fade-up { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes fx-fade-down { from { opacity: 0; transform: translateY(-12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes fx-scale { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: scale(1) } }
@keyframes fx-slide-left { from { opacity: 0; transform: translateX(16px) } to { opacity: 1; transform: translateX(0) } }
@keyframes fx-slide-right { from { opacity: 0; transform: translateX(-16px) } to { opacity: 1; transform: translateX(0) } }

@utility animate-fx-fade { animation: fx-fade var(--fx-duration, 180ms) ease-out both; }
@utility animate-fx-fade-up { animation: fx-fade-up var(--fx-duration, 180ms) cubic-bezier(.16, 1, .3, 1) both; }
@utility animate-fx-fade-down { animation: fx-fade-down var(--fx-duration, 180ms) cubic-bezier(.16, 1, .3, 1) both; }
@utility animate-fx-scale { animation: fx-scale var(--fx-duration, 180ms) ease-out both; }
@utility animate-fx-slide-left { animation: fx-slide-left var(--fx-duration, 180ms) ease-out both; }
@utility animate-fx-slide-right { animation: fx-slide-right var(--fx-duration, 180ms) ease-out both; }
