(function () { var bHeight, bWidth, block, bname, closeBtn, closeContent, content, expand, openContent, updateValues, wHeight, wWidth, xVal, yVal; block = $('.blocks__block'); bname = $('.blocks__name'); content = $('.blocks-content__content'); closeBtn = $('.blocks__content-close'); wHeight = $(window).outerHeight(); wWidth = $(window).outerWidth(); bHeight = block.outerHeight(); bWidth = block.outerWidth(); xVal = Math.round(wWidth / bWidth) + 0.03; yVal = wHeight / bHeight + 0.03; expand = function () { var aBlock, num; num = $(this).index(); aBlock = block.eq(num); if (!aBlock.hasClass('active')) { bname.css('opacity', '0'); aBlock.css({ 'transform': 'scale(' + xVal + ',' + yVal + ')', '-webkit-transform': 'scale(' + xVal + ',' + yVal + ')' }); aBlock.addClass('active'); openContent(num); } }; openContent = function (num) { var aContent; content.css({ 'transition': 'all 0.3s 0.4s ease-out', '-webkit-transition': 'all 0.3s 0.4s ease-out' }); aContent = content.eq(num); aContent.addClass('active'); }; closeContent = function () { bname.css('opacity', '1'); content.css({ 'transition': 'all 0.1s 0 ease-out', '-webkit-transition': 'all 0.1s 0 ease-out' }); block.css({ 'transform': 'scale(1)', '-webkit-transform': 'scale(1)' }); block.removeClass('active'); content.removeClass('active'); }; updateValues = function () { var yVal; var xVal; var bWidth; var bHeight; var wWidth; var wHeight; var aBlock; if (block.hasClass('active')) { aBlock = $('.blocks__block.active'); wHeight = $(window).height(); wWidth = $(window).width(); bHeight = block.height(); bWidth = block.width(); xVal = Math.round(wWidth / bWidth) + 0.03; yVal = wHeight / bHeight + 0.03; aBlock.css({ 'transform': 'scale(' + xVal + ',' + yVal + ')', '-webkit-transform': 'scale(' + xVal + ',' + yVal + ')' }); } }; $(window).on('resize', updateValues); bname.on('click', expand); closeBtn.on('click', closeContent); }).call(this); //# sourceURL=coffeescript

Cater

Cater is a London-based catering company delivering delicious food, superb drinks, and excellent service in beautiful and unique venues all over London. 

We source from small independent producers and work with chefs from London’s finest restaurants
to produce food that is of consistently outstanding quality.

Our focus is on seasonality, elegance and, above all, flavour.