superherojs / superherojs

Superhero JavaScript

Home Page:http://superherojs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Addition] open-source software to create scalable interfaces on any display

RickNln opened this issue · comments

commented

Most mobile and cross-platform web developers have encountered the problem at some point: you need your web app to scale neatly to the device screen size, regardless of which of the many thousands of devices there are out there, but your units only have one design layout width, mainly mobile.

Grappling with this problem in one of our projects our leading frontend developer Dmitriy Karpunin came up with the idea of using a post-processor to convert CSS values from one set of units to another, and that’s how postcss-px-to-viewport, a plug-in for PostCSS that converts px values to viewport units (vw, vh, etc.), was born.

Learn more: https://evrone.com/postcss-px-viewport