You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will take the parents height, the elements own height and calculate the distance the element should have from the parents top to be vertically centered. This value is applied to the top margin of the element by default.
23
25
@@ -30,17 +32,20 @@ You can pass an options hash to the plugin.
30
32
-`onAttribute` - the css attribute that the value should be set on (default: 'margin-top')
31
33
-`verticalOffset` - the number of pixels to offset the vertical alignment by, ie. 10, "50px", -100 (default: 0)
32
34
-`parentSelector` - a selector representing the parent to vertically center this element within, ie. ".parent" (default: the element's immediate parent)
35
+
-`debounceTimeout` - in milliseconds, used to rate-limit the vertical centering when resizing the browser window (default: 25)
36
+
-`deferTilWindowLoad` - if true, no action will be taken until jQuery's window.load event fires. If false, the vertical centering will take place immediately, and then once again on window.load (default: false)
0 commit comments