Skip to content

Commit 49b66cf

Browse files
committed
compiled and added docs
2 parents 3a4c90c + 8102d82 commit 49b66cf

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

bin/materialize.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jade/page-contents/modals_content.html

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ <h4>Options</h4>
174174
opacity: .5, // Opacity of modal background
175175
in_duration: 300, // Transition in duration
176176
out_duration: 200, // Transition out duration
177+
starting_top: '4%', // Starting top style attribute
178+
ending_top: '10%', // Ending top style attribute
177179
ready: function() { alert('Ready'); }, // Callback for Modal open
178180
complete: function() { alert('Closed'); } // Callback for Modal close
179181
}

js/leanModal.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
ready: undefined,
2222
complete: undefined,
2323
dismissible: true,
24-
starting_top: '4%'
24+
starting_top: '4%',
25+
ending_top: '10%'
2526
},
2627
$modal = $(this);
2728

@@ -86,7 +87,7 @@
8687
else {
8788
$.Velocity.hook($modal, "scaleX", 0.7);
8889
$modal.css({ top: options.starting_top });
89-
$modal.velocity({top: "10%", opacity: 1, scaleX: '1'}, {
90+
$modal.velocity({top: options.ending_top, opacity: 1, scaleX: '1'}, {
9091
duration: options.in_duration,
9192
queue: false,
9293
ease: "easeOutCubic",

modals.html

+2
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ <h4>Options</h4>
284284
opacity: .5, // Opacity of modal background
285285
in_duration: 300, // Transition in duration
286286
out_duration: 200, // Transition out duration
287+
starting_top: '4%', // Starting top style attribute
288+
ending_top: '10%', // Ending top style attribute
287289
ready: function() { alert('Ready'); }, // Callback for Modal open
288290
complete: function() { alert('Closed'); } // Callback for Modal close
289291
}

0 commit comments

Comments
 (0)