Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/voloshchenkoal/revealer


https://github.com/voloshchenkoal/revealer

animation

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Revealer

Create circular reveal animation on demand with revealer

reveal animation

## Installation

Install with npm:

```js
npm install --save circular-revealer
```

## Example of use

```js
import revealer from 'circular-revealer';

const revealerNav = revealer({
revealElementSelector: '.nav-js',
options: {
anchorSelector: '.nav-btn-js',
},
});

revealerNav.reveal();
```

This example will attach circular reveal animation to element with class `nav-js` and will use element with class `nav-btn-js` as initial position on animation

More examples: [codepen collection](https://codepen.io/collection/Xvbajo)