Skip to content

Instantly share code, notes, and snippets.

@nfriend21
Created January 28, 2017 14:03
Show Gist options
  • Select an option

  • Save nfriend21/940a31ae6e47781e9aed52227a25e060 to your computer and use it in GitHub Desktop.

Select an option

Save nfriend21/940a31ae6e47781e9aed52227a25e060 to your computer and use it in GitHub Desktop.
<script>
function loadCollagePlusOverrides() {
$('.Collage').each(function() {
var collage = $(this);
// 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", "100")
// 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