New2017,
jQuery(document).ready(function($) {
var items = $("section.strip-item").hover(function() {
show(items.index(this))
}, function() {
show(0)
}),
base_width = $(".strip-menu").attr("data-width"),
count = $(".strip-menu").attr("data-count");
function show(index) {
items.css("width", (100 - base_width * 2) / (count - 1) + "%")
.removeClass("hovered")
.eq(index).css("width", base_width * 2 + "%")
.addClass("hovered")
}
show(0)
});