# funkymed-fullscreen

> Managefullscreen element in React

Latest version **1.0.5** (published 2019-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install funkymed-fullscreen
pnpm add funkymed-fullscreen
yarn add funkymed-fullscreen
bun add funkymed-fullscreen
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-08-25 |
| First published | 2019-08-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Cyril Pereira |
| Maintainers | funkymed |
| Keywords | fullscreen, dom, homothety, image, funkymed |

## Links

- npm: https://www.npmjs.com/package/funkymed-fullscreen
- Repository: https://github.com/funkymed/fullscreen
- Homepage: https://github.com/funkymed/fullscreen#readme
- Issues: https://github.com/funkymed/fullscreen/issues
- npm.io page: https://npm.io/package/funkymed-fullscreen

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^15.5.4
- [jquery](https://npm.io/package/jquery.md) ^3.4.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-08-25
- 1.0.4 — 2019-08-24

## README

# Fullscreen

Author : Cyril Pereira

Put a HTML node in fullscreen fitted homothetically inside the browser

GitHub : https://github.com/funkymed/fullscreen

# Demo
Image : http://medcg.free.fr/tmp/fullscreen/index.html

# Install

```bash
yarn add funkymed-fullscreen --save
```

## Build

```bash
yarn build
```

## Test

```bash
yarn start
```

# Install in React

```javascript
import $ from "jquery";
import '../dist/Fullscreen'
```

```javascript
componentDidMount()
{
    $('.imgresized').Fullscreen({fade:3000});
}
```

```javascript
render()
{
    return (
        <div>
            <img className="imgresized" src="images/image7.jpg" />
        </div>
    );
}
```

# How to use ?

Just do this

```javascript
$('img').Fullscreen();
```

## options

```javascript
$('img').Fullscreen({transition:'ease-in-out',speed:0});
```

transition : ease-in, ease-out, ease-in-out

speed : time in second

### Fade

```javascript
$('img').Fullscreen({fade:3000});
```

fade : time in millisecond for the fade after load img

### Width and height

if you need use something else than image, you will need to set the size

just add width and height to the object option

```javascript
$('img').Fullscreen({width:1280,height:720});
```

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