Makes sure that a given value (default) does not go beyond its min and max bounds. Works great with font sizes as well.
Clamp function
See the Pen Clamp function by Projects Engine (@projectsengine) on CodePen.
Makes sure that a given value (default) does not go beyond its min and max bounds. Works great with font sizes as well.
Clamp function
See the Pen Clamp function by Projects Engine (@projectsengine) on CodePen.
Add comment