META-INF.resources.bower_components.isotope._includes.layout-change.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-jqui-vertical-timeline Show documentation
Show all versions of jwebmp-jqui-vertical-timeline Show documentation
The JWebSwing JQuery Vertical Timeline
// change layout
var isHorizontal = false;
function changeLayoutMode($link, options) {
var wasHorizontal = isHorizontal;
isHorizontal = $link.hasClass('horizontal');
if (wasHorizontal !== isHorizontal) {
// orientation change
// need to do some clean up for transitions and sizes
var style = isHorizontal ?
{height: '80%', width: $container.width()} :
{width: 'auto'};
// stop any animation on container height / width
$container.filter(':animated').stop();
// disable transition, apply revised style
$container.addClass('no-transition').css(style);
setTimeout(function () {
$container.removeClass('no-transition').isotope(options);
}, 100)
} else {
$container.isotope(options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy