1.0.7 • Published 8 years ago

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

Weekly downloads
15
License
ISC
Repository
github
Last release
8 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

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago