# ContainerScroll

> Scroll-driven aperture: the card opens from a bright seam as it enters the viewport while its content settles into focus and the title blurs away, with no 3D tilt.

- Package: `fancy-ui-vue` (Vue 3.5+ + Tailwind CSS v4)
- Category: Layout
- Tags: layout, scroll, animation, aperture, reveal
- Types: `ContainerScrollProps`
- Docs: https://fancy-ui.rama.app/docs/components/container-scroll
- Source: https://github.com/RamaHerbin/fancy-ui/tree/main/vue/src/components/container-scroll

## Import

```vue
<script setup lang="ts">
import { ContainerScroll } from 'fancy-ui-vue';
</script>
```

Setup (once per project): `npm install fancy-ui-vue`, then put these lines in your main CSS file (the stylesheet imports go right after `@import "tailwindcss";`):

```css
@import "tailwindcss";
@import "fancy-ui-vue/tailwind.css";
@import "fancy-ui-vue/styles.css";
```

Full guide: https://fancy-ui.rama.app/llms.txt

The names below are the ones to write in a Vue template; when one differs from the Svelte name, the Svelte name follows in parentheses. Snippets become named slots (`#default` is the default snippet), a prop the Vue port declares as a model is a `v-model:<name>` (except `ref`, exposed via `defineExpose({ ref })`: put a template ref on the component and read `.ref`) and callbacks are listeners (`onclick` is `@click`). Every component sets `inheritAttrs: false`: `class` is a declared prop, merged where the Svelte component applies it (not always the root element), and only when the props table below lists it; other attributes do not fall through unless the package README lists the component as forwarding native attributes. Divergences: https://github.com/RamaHerbin/fancy-ui/tree/main/vue#divergences-from-the-svelte-api

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `accent` | `string` | `undefined (soft blue #8fb2ff via --cs-accent)` | Seam colour; its white-hot core is mixed from it |
| `accentSecondary` | `string` | `undefined (soft lilac #c3b1ff via --cs-accent-2)` | Second seam tint, blended towards the ends of the seam and lips |

## Slots

| Slot | Description |
| --- | --- |
| `#titleContent` (Svelte `titleContent`) | Header/title content that blurs and fades as the card opens |
| `#cardContent` (Svelte `cardContent`) | Content revealed through the aperture; settles from a slight zoom into focus |

## Example

No Vue example is published for this component yet: start from the import above and the props table. The full examples are Svelte-only, on https://fancy-ui.rama.app/docs/components/container-scroll.md.
