# angular-fitvids

> Makes your videos fluid-width.

Latest version **0.1.1** (published 2016-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-fitvids
pnpm add angular-fitvids
yarn add angular-fitvids
bun add angular-fitvids
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-03-11 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Boston Dell-Vandenberg |
| Maintainers | bostondv |
| Keywords | angular, fitvids |

## Links

- npm: https://www.npmjs.com/package/angular-fitvids
- Repository: https://github.com/bostondv/angular-fitvids
- Issues: https://github.com/bostondv/angular-fitvids/issues
- npm.io page: https://npm.io/package/angular-fitvids

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-03-11
- 0.1.0 (angular-fitvids) — 2016-03-11

## README

# Angular FitVids

This project is an [AngularJS](http://angularjs.org) port of [FitVids](https://github.com/davatron5000/FitVids.js) from [@davatron5000](https://twitter.com/davatron5000) and [@chriscoyier](https://twitter.com/chriscoyier). This exists to allow AngularJS users access to responsive video support through FitVids without requiring jQuery.

# Browser Support

Has been loosely tests on the latest versions of Chrome and Firefox as well IE8+. Browsers must support `document.querySelectorAll` for it to work.

# Usage

For overall usage please see FitVids. Works with AngularJS v1.2.0 and above.

```html
<script src="/path/to/angular.min.js"></script>
<script src="path/to/angular-fitvids.js"></script>
<script type="text/javascript">
    var App = angular.module('App', ['fitVids']);
</script>

<!-- Video in your <body> -->
<div fit-vids>
    <iframe width="425" height="349" src="http://www.youtube.com/embed/FKWwdQu6_ok" frameborder="0" allowfullscreen></iframe>
</div>
```

Custom selector support exists like so

```html
<div fit-vids custom-selector="iframe[src^='http://socialcam.com']">
    <iframe width="520px" height="391px" src="http://socialcam.com/videos/XRMP3Y5t/embed?utm_campaign=web&utm_source=embed" frameborder="0" allowfullscreen></iframe>
</div>
```

---
_Source: https://npm.io/package/angular-fitvids · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
