Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
  • Zazz 0.14 alpha

    API

    Starting style

    --<utility>--starting: the value an element animates in from.

    --<utility>--starting is the element's @starting-style value. When the element first renders, or leaves display: none (a popover opening, hidden removed), it starts there and a --transition animates it to its usual value. Without a transition nothing visible happens.

    <div
      style="
        --opacity--starting: 0;
        --opacity: 1;
        --translate--starting: 0 1rem;
        --translate: 0;
        --transition: opacity 0.3s, translate 0.3s;
      "
    >
      …
    </div>

    It outranks every other state, has no --group-* form, and works without a base where the utility has a default (--opacity, --filter, --backdrop-filter, --scale, --translate, --rotate). The formatter writes it first among its utility's lines.

    Some utilities have no starting tier, because an entry value has no use there. Their property is discrete or not animatable: --transition, --transition-duration, --transition-delay, --animation, the anchor utilities, --text-wrap, --text-decoration, --border-style, and --mix-blend. --z has none either: an element enters in the stacking order it rests in.

    API