how to get vp width with js code example
Example: what is css vh
CSS VH unit Property
Viewport Height ( vh )
– A percentage of the full viewport height. 10vh will resolve to 10% of the current viewport height. Viewport Minimum ( vmin )
– A percentage of the viewport width or height, whichever is smaller.