Created
January 6, 2017 16:54
-
-
Save nfriend21/cfa051ef00f5a3397d14b7d4818c162b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script> | |
$(document).on('ready', function() { | |
$('.Collage').each(function() { | |
var collage = $(this); | |
// REMOVE THE FOUR FORWARD SLASHES AT BEGINNING OF ANY LINE THAT CONTAINS FOUR FORWARD SLASHES, | |
// IN ORDER TO OVERRIDE THE DEFAULT SETTING FOR THAT OPTION. THE COMMENTS ABOVE ANY LINE PROVIDE | |
// INSTRUCTIONS ON HOW YOU CAN USE THE OPTION. | |
// this allows you to change the loading effect of the images as they appear on the screen. | |
// default value is "effect-2". Possible options are "effect-1", "effect-2", "effect-3". | |
//// collage.attr("data-effect", "effect-2") | |
// this is an approximation, but allows you to change the sizes of the images. | |
// keep in mind, the nature of a collage layout will not give you perfect control over sizing. | |
// default value is "450". | |
collage.attr("data-target-height", "300") | |
// this allows you to change the speed that the images appear on the screen. | |
// default value is "fast". Possible options are "fast", "slow". | |
//// collage.attr("data-fade-speed", "fast") | |
}); | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment