# unc-react-page-transitions

> React Page Transition Component based in codrops's project and developing by Unico Digital

Latest version **0.3.0** (published 2018-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install unc-react-page-transitions
pnpm add unc-react-page-transitions
yarn add unc-react-page-transitions
bun add unc-react-page-transitions
```

## 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.3.0 |
| Published | 2018-10-05 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 999.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juan Baena |
| Maintainers | jpbaena13 |
| Keywords | react, js, javascript, jpbaena13, react-component, page transitions |

## Links

- npm: https://www.npmjs.com/package/unc-react-page-transitions
- Repository: https://github.com/jpbaena13/unc-react-page-transitions
- Homepage: https://github.com/jpbaena13/unc-react-page-transitions.git
- Issues: https://github.com/jpbaena13/unc-react-page-transitions/issues
- npm.io page: https://npm.io/package/unc-react-page-transitions

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.3.0 (latest) — 2018-10-05
- 0.2.9 — 2018-09-20
- 0.2.8 — 2018-09-14
- 0.2.7 — 2018-09-14
- 0.2.6 — 2018-09-14
- 0.2.5 — 2018-09-14
- 0.2.4 — 2018-09-11
- 0.2.3 — 2018-09-08
- 0.2.2 — 2018-09-03
- 0.2.1 — 2018-08-31
- 0.2.0 — 2018-08-31
- 0.1.1 — 2018-08-16
- 0.1.0 — 2018-08-13

## README

## Install

Install it with npm (`npm install unc-react-page-transitions --save`). Here's a simple example:

```jsx
import React from 'react';
import { render } from 'react-dom';
import { PageTransitions, Page } from 'unc-react-page-transitions';

const loadedPageTriggers = [
  { f: () => { console.log('loaded'); }, r: true }
];

const leavedPageTriggers = [
  { f: () => { console.log('leaved'); }, r: true }
];

class App extends React.Component {
  render() {
    return (
      <div id="example-wrapper" style={{ height: 500, overflow: 'hidden' }}>
        <button className="btn btn-light" onClick={() => { this.pt.nextPage(); }} 
                style={{ position: 'absolute', margin: '1em', zIndex: 10 }}>Next Page</button>

        <PageTransitions ref={ (pt) => { this.pt = pt; } }>
          <Page style={{ backgroundColor: '#f68dbb' }}>
            <h1><small>A Collection of</small><strong>PAGE</strong> TRANSITIONS</h1>
          </Page>

          <Page style={{ backgroundColor: '#0ac2d2' }}
                loadedPageTriggers={loadedPageTriggers}
                leavedPageTriggers={leavedPageTriggers}>
            <h1><small>A Collection of</small><strong>PAGE</strong> TRANSITIONS</h1>
          </Page>

          <Page style={{ backgroundColor: '#7bb7fa' }}>
            <h1><small>A Collection of</small><strong>PAGE</strong> TRANSITIONS</h1>
          </Page>
        </PageTransitions>
      </div>
    );
  }
}

render(
  <App />,
  document.getElementById('app')
);
```

## Documentation

Documentation and demo can be found here: http://jpbaena13.github.io/unc-react-page-transitions/

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