Core Components
Number Effects
Interactive Elements
Advanced Effects
Radix UI Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Base UI Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
In View#
Easily animate elements when they come into view. You can apply animations to elements when they enter the viewport, or when they are fully visible.
Examples#
Basic in view#
Scroll down
Craft beautiful animated components with Components. Designed for developers and designers. The library leverages the power of Motion, with intuitive APIs that simplifies creating complex animations for any project. Start building more dynamic interfaces today.
Basic in view with margin option#
Scroll down
Athletics. Watch running, jumping, and throwing events. Athletes compete in many different activities.
Swimming. See swimmers race in water. They use different styles to swim fast and win medals.
Gymnastics. Gymnasts perform amazing flips and jumps. They show strength and balance in their routines.
In view with images and margin option#
Images are from cosmos - oui are one ::
Scroll down
Installation#
npx DWL Components add "https://components.dylanwlim.com/c/in-view.json"Component API#
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | The content inside the InView component. | |
| variants | { hidden: Variant; visible: Variant; } | { hidden: { opacity: 0 }, visible: { opacity: 1 } } | Variants to define the animation states. |
| transition | Transition | Specifies the animation transitions. | |
| viewOptions | UseInViewOptions | Options to configure the in-view behavior. | |
| as | React.ElementType | 'div' | The HTML element to render the component as. |
| once | Boolean | undefined (false) | If true, the animation will play only once. |
Build with DWL Components
Use the copied registry, charts, blocks, and create tools in one place.
Start from the DWL Components create flow and customize from there.
Open DWL Components Create