Skip to content
Effects, new

Before / After

Two crisp DOM layers divided by a spring-driven heat seam, with pointer momentum, round falling sparks and keyboard control.

$149 once · every Pro piece

Customize

Install

npx shadcn@latest add @obsyde/before-after

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { BeforeAfter } from '@/components/obsyde/ember/before-after/BeforeAfter';

export function Example() {
  return (
    <BeforeAfter />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/before-after/BeforeAfter.tsxcomponent
  • ember/before-after/before-after.cssstyles
  • ember/before-after/BeforeAfterDemo.tsxdemo
  • ember/tactile-kit/kit.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/spring.tsshared
  • ember/reaction-bar/motion.tsshared
  • ember/kit2-kit/kit.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
orientationOrientation'horizontal' | 'vertical''horizontal'
initialPositionInitial positionnumber50
glowSeam glowbooleantrue