0.1.3 • Published 1 year ago
react-ambiance v0.1.3
React Ambiance
Components that create ambiance from image or video. This was inspired by YouTube's Ambient Mode.
import { AmbientVideo } from 'react-ambiance';
<AmbientVideo>
<video
muted
controls
height={320}
width={480}
loop
autoPlay
src="example-video.mp4"
/>
</AmbientVideo>;
Props
scale
: The ambiance scaleblur
: Blur level in pxopacity
: The ambiance opacityborderRadius
: The Ambiance border radiusframeRate
: Controls the frame rate (may affect performace if set to a low value)initialFrameAlpha
: The initial alpha of each frame (the lower the value the smoother the transition between frames)appear
: Apply a transition on the initial renderwatchSourceResize
: Watches source size changes