Skip to content

Instantly share code, notes, and snippets.

@danro
Created November 12, 2013 18:59
Show Gist options
  • Save danro/7436691 to your computer and use it in GitHub Desktop.
Save danro/7436691 to your computer and use it in GitHub Desktop.
Webflow.js resize example
var Webflow = Webflow || [];
Webflow.push(function () {
// Find example element
var $element = $('.resize-demo');
var $parent = $element.parent();
// Listen for optimized resize event
Webflow.resize.on(function () {
// Do something with element on resize
$element.height($parent.height());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment