Skip to content

A scalable layout scheme implemented using 'viewport'.

License

Notifications You must be signed in to change notification settings

pwcong/vw-flexible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VW Flexible

A scalable layout scheme implemented using viewport.

Quick Start

Install

yarn add vw-flexible
# or
npm install vw-flexible

Use

import VW from 'vw-flexible';

new VW({
  // set 100vw = 10rem
  totalRem: 10,
});
<style>
  .block {
    background-color: red;
    width: 5rem;
    height: 5rem;
  }
</style>

<div class="container">
  <div class="block"></div>
</div>

About

A scalable layout scheme implemented using 'viewport'.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published