1.0.2 • Published 1 year ago

angular-video-backlight v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

angular-video-backlight

Turn on beautiful backlight for video like youtube

Installation

NPM

npm install angular-video-backlight

Import the module

import { AngularVideoBacklightModule } from "angular-video-backlight";

@NgModule({
  declarations: [
   //some declarations
  ],
  imports: [
    //some imports
    AngularVideoBacklightModule
  ],
})

On a HTML video tag put the backlight directive

<video backlight>...</video>

Parameters

NameTypeDescription
deltanumberoffset-x or offset-y(depending on the side)
blur_radiusnumberThe larger this value, the bigger the blur, so the shadow becomes bigger and lighter.
spread_radiusnumberThe larger this value, the bigger the shadow.
alphanumberThe lower this value, the more transparent the shadow

Demo

You can try out a demo by clicking here.

Source

https://github.com/yan-libs/angular-video-backlight/tree/develop/projects/angular-video-backlight

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago