Socket
Socket
Sign inDemoInstall

@cleverage/responsive-video-background

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cleverage/responsive-video-background - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json

@@ -6,3 +6,3 @@ {

},
"version": "1.0.5",
"version": "1.0.6",
"description": "A JavaScript library to help build components with responsive video and/or image background",

@@ -9,0 +9,0 @@ "main": "responsive-video-background.js",

@@ -13,2 +13,32 @@ # `<responsive-video-background />` Web Component

## Installation
### Use from a CDN
The quickest way to get started and try the Web Component is to load `<responsive-video-background />` as a module script tag from a CDN:
```html
<script type="module" src="https://unpkg.com/@cleverage/responsive-video-background@^1"></script>
```
Don't forget the `type="module"` attribute, this is [own JavaScript modules are now loaded in HTML pages](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html).
This is own it is used in [this demo in CodePen](https://codepen.io/nhoizey/pen/YzawBrq) that you can fork to play with it.
### Better for performance: add a local version to your project
`<responsive-video-background />` is also available [on npm](https://www.npmjs.com/package/@cleverage/responsive-video-background), so you can add it to your project with this shell command:
```shell
npm install @cleverage/responsive-video-background
```
You can then import it in your own project:
```js
import '@cleverage/responsive-video-background';
```
Your build tools will then be able to optimize where, when and how to load it.
## Usage

@@ -15,0 +45,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc