ScaleRotate

Utilities & Providers
stable

CSS-driven Vue transition that combines scale(0) + rotate(−45deg) + opacity on enter, with a symmetric leave. Sub-component of the Transition family.

Structure

Anatomy

Visual breakdown of the component's internal structure with BEM class call-outs.

Anatomy of OrigamScaleRotateSchematic of the scale-rotate transition with entering and leaving elements. enter-active scale(0) rotate(−45deg) → full leave-active full → opacity 0 1 2 →
Anatomy of <origam-scale-rotate> — wraps one child element. The enter ① animates from scale(0) + rotate(−45deg) + opacity:0 to full. The leave ② transitions opacity out over 0.3 s.
1.origam-transition--scale-rotate-enter-active
Enter phase. Child animates from scale(0) rotate(−45deg) opacity:0 to identity. Duration: 0.3 s, easing: cubic-bezier(0.4,0,0.2,1).
2.origam-transition--scale-rotate-leave-active
Leave phase. Child transitions opacity and transform out over 0.3 s.

API

Props

All props accepted by this component, with their type, default value and description.

Vue transition mode: "in-out" or "out-in".
disabled
boolean
false
Disables the animation. Content appears/disappears instantly.
name
string
'origam-transition--scale-rotate'
Vue transition name class prefix. Defaults to origam-transition--scale-rotate.
group
boolean
false
When true, renders a <transition-group> to enable list-move animation.
hideOnLeave
boolean
false
Sets the leaving element to visibility: hidden immediately.
leaveAbsolute
boolean
false
Positions the leaving element absolutely during the leave phase to prevent layout jank.
origin
string
CSS transform-origin applied during the transition.

API

Slots

Content slots exposed by this component.

#default
A single child element (or multiple when group=true) that receives the scale-rotate transition.

API

Exposed members

Properties and methods accessible via template ref (defineExpose). Use them for programmatic control.

<T extends object>(props: T, exclude?: string[]) => Partial<T>
Forwards a filtered subset of props to the underlying transition.

Customisation

CSS variables

CSS custom properties exposed by this component. Override them to customise the component without losing theme compatibility.

Default transition duration for the scale-rotate animation (0.3 s hardcoded in the CSS class, token reference for override).
Easing function: cubic-bezier(0.4, 0, 0.2, 1).

Inclusion

Accessibility

ARIA roles, keyboard navigation and focus management. Sourced from the real component template.

Notes

  • The transition is disabled automatically when prefers-reduced-motion: reduce is detected (disabled prop becomes true via useCssTransition).
  • The wrapper is transparent to the accessibility tree. Only the slotted child is announced by screen readers.

Interactive

Playground

Edit props live and see the component update in real time. The generated code snippet updates as you change values.

Rendering the live preview…

Usage

Examples

Ready-to-paste code snippets for your templates.

Basic scale-rotate transition

vue

out-in mode

vue

List animation (group)

vue

Ecosystem

Family

Components from the same folder that share conventions and often compose together.