Skip to main content
Version: 4.x

Effects Overview

ACSS provides a comprehensive effects system for adding motion and visual feedback to your website. All effects are opt-in, composable, and respect the user's prefers-reduced-motion setting.

Effect Categories

Hover Effects

Simple hover interactions using the .on-hover--* prefix:

  • Transform: grow, shrink, float, sink, forward, backward
  • Shadow: shadow, glow
  • Filter: brighten
  • Opacity: fade
  • Border: ripple, outline, underline animations

Scroll Animations

CSS scroll-driven animations that trigger based on scroll position:

  • Entrance Effects (.on-enter--*): Elements animate into view as you scroll down
  • Exit Effects (.on-exit--*): Elements animate out as you scroll past them

Visible Animations

JavaScript-powered animations using Intersection Observer:

  • Visible Effects (.on-visible--*): Elements animate once when they become visible and stay visible

Key Features

Composable

Combine multiple effect classes on a single element:

<div class="on-enter--fade on-enter--float on-enter--grow">
This element fades in, floats up, AND grows simultaneously
</div>

Apply to Children

Use the -all variants to animate direct children:

<div class="on-enter-all--fade">
<div>Child 1 fades in</div>
<div>Child 2 fades in</div>
<div>Child 3 fades in</div>
</div>

Delay Utilities

Stagger animations with delay classes:

<!-- Scroll animations (percentage-based) -->
<div class="on-enter--fade on-enter--delay-10">Delayed 10%</div>

<!-- Visible animations (time-based) -->
<div class="on-visible--fade on-visible--delay-200">Delayed 200ms</div>

Accessibility

All effects automatically respect prefers-reduced-motion:

@media (prefers-reduced-motion: reduce) {
/* Animations are disabled, elements appear immediately */
}

Dashboard Configuration

Configure effects in the dashboard under Effects. The panel is organized into two tabs:

  • Effects Tab: Configure individual effect settings (timing, distance, etc.)
  • Options Tab: Enable/disable effects from the library

Only enabled effects are included in your CSS output.

Browser Support

  • Hover Effects: All modern browsers
  • Scroll Animations: Browsers supporting animation-timeline: view() (Chrome 115+, Edge 115+). Falls back gracefully in unsupported browsers.
  • Visible Animations: All browsers supporting Intersection Observer (all modern browsers)