Skip to content

Transitions

The Six Webcomponents library uses a set of transition tokens to create smooth and consistent animations throughout the interface.

CSS VariableValueDescription
--six-transition-x-slow1000msExtra slow transitions for major layout changes
--six-transition-slow500msSlow transitions for larger UI elements
--six-transition-medium250msMedium transitions for standard elements
--six-transition-fast150msFast transitions for small UI elements
--six-transition-x-fast50msExtra fast transitions for micro-interactions

Hover over each box to see the transition speed

X-Slow: 1000ms
Slow: 500ms
Medium: 250ms
Fast: 150ms
X-Fast: 50ms

Usage Example

css
.button {
  background-color: var(--six-color-web-rock-100);
  transition: background-color var(--six-transition-fast);
}

.button:hover {
  background-color: var(--six-color-web-rock-200);
}

.panel {
  transform: translateY(-100%);
  transition: transform var(--six-transition-medium);
}

.panel.open {
  transform: translateY(0);
}