# viewTransitionCommon

**Kind:** Constant

**Source:** [`src/helper/css/common.ts`](https://github.com/honojs/hono/blob/main/src/helper/css/common.ts#L302)

**Part of:** [Helper](subsystem-src-helper)

## Definition

```ts
ViewTransitionType
```

## Value

```ts
((
  strings: TemplateStringsArray | CssClassName | undefined,
  values: CssVariableType[],
  classNameSlug?: ClassNameSlug,
  onInvalidSlug?: OnInvalidSlug
): CssClassName => {
  if (!strings) {
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    strings = [`/* h-v-t ${viewTransitionNameIndex++} */`] as any
  }
  const content = Array.isArray(strings)
    ? cssCommon(strings as…
```

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (2)

- `createCssContext` — `src/helper/css/index.ts`:72
- `createCssJsxDomObjects` — `src/jsx/dom/css.ts`:77
