react-fit-to-viewport
<div align="center"> <a href="https://react-fit-to-viewport.pomb.us/"> <img alt="demo" src="https://user-images.githubusercontent.com/1911623/91593713-0388ee00-e937-11ea-8aae-0f8983125318.gif" width="600" /> </a> <br/> </div>
Last updated 3 months ago by pomber .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-fit-to-viewport 
SYNC missed versions from official npm registry.

react-fit-to-viewport

demo

Automatically scales the content to fit it inside the viewport. It also works with server-side rendering.

$ yarn install react-fit-to-viewport
<FitToViewport width={800} height={600} minZoom={0} maxZoom={1}>
  {stuff}
</FitToViewport>

Current Tags

  • 0.1.1                                ...           latest (3 months ago)

2 Versions

  • 0.1.1                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (20)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |