1.1.3 • Published 4 years ago

vh-variable v1.1.3

Weekly downloads
27
License
ISC
Repository
github
Last release
4 years ago

vh-variable

A small module that declares a css variable that correctly calculates the value of 1vh.

On mobile phones there is a problem with the address bar for items with 1vh height, this package can solve this problem

Installation

Use the package manager to install vh-variable.

npm i vh-variable

Usage

import 'vh-variable'

or Common.js

require('vh-variable')

Use in code like this:

Before

selector{
    height: 100vh;
}

After

selector{
    height: calc(var(--vh, 1vh) * 100);
}
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago