vael-ui v0.5.7

Directives

v-scroll-mask

Fades the edges of a scroll container where content overflows, so you get a soft edge instead of a hard cutoff. The fade at an edge disappears when you scroll all the way to it. A ResizeObserver checks the overflow again when the content or container changes size.

Install

import { vScrollMask } from 'vael-ui'

Examples

Line 1 of a tall block of content.

Line 2 of a tall block of content.

Line 3 of a tall block of content.

Line 4 of a tall block of content.

Line 5 of a tall block of content.

Line 6 of a tall block of content.

Line 7 of a tall block of content.

Line 8 of a tall block of content.

Line 9 of a tall block of content.

Line 10 of a tall block of content.

Line 11 of a tall block of content.

Line 12 of a tall block of content.

DesignEngineeringProductSupportFinanceLegalPeopleSales

Value

NameTypeDescription
booleanbooleanTurns the mask on or off: false removes it, and any other value turns it on.
'x' | 'y' | 'both'ScrollMaskAxisWhich edges to fade. Default 'y' when the value is empty or true.

Modifiers

NameTypeDescription
.x / .y / .both—Sets the axis, as the value does: v-scroll-mask.x fades the sides of a box that scrolls across.