/*Used to keep captions inside the visible area*/
#foogallery-gallery-87936 .foo-item {
max-height: 800px;
}
#foogallery-gallery-87936.border-style-inset a::after {
box-shadow: inset 0 0 20px #000;
-moz-box-shadow: inset 0 0 20px #000;
-webkit-box-shadow: inset 0 0 calc(800px/4) rgba(0,0,0,0.8);
}

/* The Owl Initialization Script
/* The first lines conditionally show the slide animation */
jQuery(function($){
var $galleryContainer = $( ‘#foogallery-gallery-87936’ );
var $containerID = ‘#foogallery-gallery-87936’;

$(document).on(‘keydown’, function( event ) { //attach event listener
if (event.keyCode == 37) {
$galleryContainer.trigger(‘prev.owl’)
}
if (event.keyCode == 39) {
$galleryContainer.trigger(‘next.owl’)
}

});

$galleryContainer.owlCarousel({
items: 1,
nav:true,
margin: 10,
loop:true,
autoplay: false,
autoplaySpeed: 4000,
smartSpeed:250,
navSpeed: 1250,
navText: [‘<‘, ‘>‘],
autoplayHoverPause: true,
lazyLoad: true,
autoWidth: 0 });
});

Photo via Visualhunt


Source: http://theheureka.com/these-10-berlin-startups-will-liven-up-your-instafeed-20160602

Advertisements