Apply the code below to a hidden embed on the page. It is better to make it into a component, so you can reuse it wherever you like.
Once you place this code inside of an html embed, create a class in Webflow with the exact same name. Leave off the period.
Apply that class as the main class or combo class to any element you want to clamp down.