A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
My config is like this:
"postcss-px-to-viewport": {
viewportWidth: 750,
viewportHeight: 1334,
unitPrecision: 3,
viewportUnit: 'vw',W
selectorBlackList: ['.usepixel'],
minPixelValue: 1,
mediaQuery: true
}
When I add the class 'usepixel', the ‘@keyframes' is still converted vw.
My config is like this: "postcss-px-to-viewport": { viewportWidth: 750, viewportHeight: 1334, unitPrecision: 3, viewportUnit: 'vw',W selectorBlackList: ['.usepixel'], minPixelValue: 1, mediaQuery: true } When I add the class 'usepixel', the ‘@keyframes' is still converted vw.