-
-
Save vejnoe/db4cc109c76b06c2abaa687e6dedd9ef to your computer and use it in GitHub Desktop.
Webflow.js resize example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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