Video Effects

Apply visual effects to video using standard CSS. The video element renders to a canvas, so all CSS properties apply directly.

CSS Filters

Use Tailwind filter utilities or inline styles:

Live

Common filter classes:

EffectClassDescription
Blurblur-sm / blur-md / blur-lgGaussian blur
Brightnessbrightness-50 / brightness-150Darken or lighten
Contrastcontrast-50 / contrast-150Reduce or increase contrast
GrayscalegrayscaleFull desaturation
SepiasepiaWarm vintage tone
Saturatesaturate-50 / saturate-200Color intensity

Combine multiple filters by listing classes:

<ef-video src="video.mp4" class="grayscale contrast-125 brightness-110 size-full"></ef-video>

CSS Transforms

Scale and rotate video elements:

Live

CSS Animations

Animate any CSS property over time using @keyframes:

Live

Animations run relative to the video's timeline — they're fully scrubbable.

Combining Effects

Layer static filters with animations for complex looks:

Live

Note: Static CSS classes (like sepia) combine with animation keyframes. The animation overrides only the properties it targets.

Understanding Video ElementsStep 4 of 4