Created
December 18, 2018 00:10
-
-
Save cameronjonesweb/baba8773bdb4b75ce180e886faa44484 to your computer and use it in GitHub Desktop.
Clamps all instances of a class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function() { | |
jQuery( '.clampThis' ).each( function( index, element ) { | |
$clamp( | |
element, | |
{ | |
clamp: 1, | |
useNativeClamp: false | |
} | |
); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment