(function($){ $.fn.twentytwenty = function(options) { var options = $.extend({default_offset_pct: 0.5, orientation: 'horizontal'}, options); return this.each(function() { var sliderPct = options.default_offset_pct; var container = $(this); var stacked_gallery = $(this); var container = stacked_gallery.find(".sqs-gallery"); var sliderOrientation = options.orientation; var beforeDirection = (sliderOrientation === 'vertical') ? 'down' : 'left'; var afterDirection = (sliderOrientation === 'vertical') ? 'up' : 'right'; container.wrap("
"); container.append("
"); var beforeImg = container.find("img:first"); var afterImg = container.find("img:last"); var beforeImg = container.find(".image-wrapper:last"); var afterImg = container.find(".image-wrapper:first"); container.append("
"); var slider = container.find(".twentytwenty-handle"); slider.append(""); @@ -28,22 +35,23 @@ overlay.append("
"); var calcOffset = function(dimensionPct) { var w = beforeImg.width(); var h = beforeImg.height(); var img = beforeImg.find("img") var w = img.width(); var h = img.height(); return { w: w+"px", h: h+"px", cw: (dimensionPct*w)+"px", ch: (dimensionPct*h)+"px" }; }; }; var adjustContainer = function(offset) { if (sliderOrientation === 'vertical') { beforeImg.css("clip", "rect(0,"+offset.w+","+offset.ch+",0)"); beforeImg.find("img").css("clip", "rect(0,"+offset.w+","+offset.ch+",0)"); } else { beforeImg.css("clip", "rect(0,"+offset.cw+","+offset.h+",0)"); beforeImg.find("img").css("clip", "rect(0,"+offset.cw+","+offset.h+",0)"); } container.css("height", offset.h); }; @@ -71,8 +79,8 @@ container.addClass("active"); offsetX = container.offset().left; offsetY = container.offset().top; imgWidth = beforeImg.width(); imgHeight = beforeImg.height(); imgWidth = beforeImg.find("img").width(); imgHeight = beforeImg.find("img").height(); }); slider.on("moveend", function(e) { @@ -95,6 +103,15 @@ container.find("img").on("mousedown", function(event) { event.preventDefault(); }); //added this to fix an issue in Chrome where the webkit cached images wouldn't load before trying to read the size. Silly chrome. var imageLoaded = beforeImg.find("img"); $(imageLoaded).load(function() { setTimeout(function() { var offset = calcOffset(options.default_offset_pct); adjustContainer(offset); }, 0); }); $(window).trigger("resize.twentytwenty"); });

Birmingham Brightens Up

Photography by Beth Singer

 

This Birmingham home underwent a comprehensive remodel to shift from dark, traditional ‘Old World’ to a bright and clean transitional style. This was achieved by replacing dark cabinetry and beige trim with crisp whites that were still warm enough to complement this home.

The kitchen features predominantly bright, but warm white cabinetry. Instead of doing the island in a contrasting finish, a statement armoire was designed with a unique cool-toned stain on walnut to house the refrigerator, pantry, and speed oven. Custom cabinetry and matching panels were used to replace a former standard, small walk in pantry. Immediately off the kitchen, the butler’s pantry underwent and overhaul to embrace the brighter aesthetic, while also adding a wainscot feature wall with shelving to display favorite wine and spirits.

Photography by Beth Singer

In a household with three young boys, things can get a bit chaotic. The homeowners looked to us to create a master bath that would act more as a calm retreat than a utilitarian space. Carrara marble and subtle blue undertones began to set the stage for this serene space. Larger honed carrara marble floor tiles were laid in a staggered pattern to elongate the space, while white marble mosaics inlaid into the floor and shower provide additional visual interest. Wainscoting and pivot mirrors present unique elements that add a classic, elegant and timeless feel to the space. A large drop-in tub was removed and replaced with a lighter freestanding tub that allowed room to enlarge the glass shower. With its clean, refined palette, white millwork, and polished accents, this tranquil retreat still provides plenty of visual interest.

Photography by Beth Singer