Developer
Clamp generator
16 and 24 become clamp(16px, calc(16px + 0.833vw), 24px).
No file requiredDrop several to batch them into one zip. Paste works too. Nothing is uploaded.
R runs. Esc cancels. D downloads.
0%
Ready when you are.
- Before
- —
- After
- —
How Clamp generator works
- Set the minimum pixels.
- Set the maximum pixels.
- Run and copy the clamp().
The slope is (max − min) / (1280 − 320), written as a vw term added to the minimum. The maximum has to be larger than the minimum.
Questions
Does Clamp generator upload the file?
No. Clamp generator runs in this browser. Nothing is uploaded.
What does Clamp generator produce?
The slope is (max − min) / (1280 − 320), written as a vw term added to the minimum. The maximum has to be larger than the minimum.
How is Clamp generator ahead of the usual version?
2 options are on the page before you run, and Run is the R key.