Ask questions and get good answers on mb.jQuery.components

I want to fade in a mb.containerPlus instead of having it open up immediately. Right now I use this code to open the window and center it:

$(".containerPlus").buildContainers({ containment:"document", elementsPath:"/sites/all/themes/zen/usrabook/elements/", mantainOnWindow:false });

$(".containerPlus").mb_centerOnWindow();

asked Dec 09 '09 at 23:09

paul's gravatar image

paul
111


If you set the metadata properties close to true (closed:'true') and after centering it on window you call: $('#[yourContainerPlus]').mb_open(); it should fade out.

answered Dec 10 '09 at 22:33

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

-1

Hmm I can't seem to get it to start as closed. Does it need something to close into to? I did get the fadein to work using jquery's standard .fadeIn('slow') which I just learned how to use.

Thanks for the tip I'll keep trying your way I might just have made a dumb mistake:

$(".containerPlus").buildContainers({ containment:"document", elementsPath:"/sites/all/themes/zen/usrabook/elements/", mantainOnWindow:false, closed:"true" });

$(".containerPlus").mb_centerOnWindow();

$(".containerPlus").mb_open();

answered Dec 12 '09 at 00:39

Paul_2's gravatar image

Paul_2
1

Ack nevermind I just realized I got 'parameters' and 'metadata' mixed up. The metadata goes in the class. Got it! But it doesn't fadein it just pops open :( It could be a conflict with the flash im running in the window I suppose

(Dec 12 '09 at 00:48) Paul_2
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: Dec 09 '09 at 23:09

Seen: 447 times

Last updated: Feb 03 '10 at 11:29

Related questions

jQuery main site - Matteo Bicocchi