1.0.7 • Published 7 years ago

react-resize-to-aspect-ratio v1.0.7

Weekly downloads
15
License
ISC
Repository
github
Last release
7 years ago

react-resize-to-aspect-ratio

A react component that triggers an event when an element changes size. It also can automatically keep a given aspect ratio when the element resizes.

This react component is based on element-resize-event

Example Use:

npm i react-resize-to-aspect-ratio -S
import Resize from 'react-resize-to-aspect-ratio';

<Resize aspectRatio="16:9">
  <div style={{ width: '100%' }}>
    Hello World
  </div>
</Resize>
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago