newAnimatedComponent("drop", OnEvent.click, YuiEffect.Type.Drop, true);
// TV
WebMarkupContainer tv;
add(tv = new WebMarkupContainer("tv"));
tv.add(new YuiAnimation(OnEvent.click).addEffect(new YuiEffect(YuiEffect.Type.TV, delay))
.addEffect(new YuiEffect(YuiEffect.Type.Appear)));
// mouse over
newAnimatedComponent("fade_mouseover", OnEvent.mouseover, YuiEffect.Type.Fade, true);
// Blind Up / Down + attributes...
Attributes ghost_attr = delay.add(new Attributes("ghost", "true"));
Attributes easing = new Attributes("ease", YuiEasing.elasticBoth.constant());
WebMarkupContainer ghost;
add(ghost = new WebMarkupContainer("ghost"));
ghost.add(new YuiAnimation(OnEvent.click).addEffect(
new YuiEffect(YuiEffect.Type.BlindUp, ghost_attr)).addEffect(
new YuiEffect(YuiEffect.Type.BlindDown, easing)));
// Batch Blind Up / Down / Right / Drop / Appear
WebMarkupContainer batch;
add(batch = new WebMarkupContainer("batch"));
batch.add(new YuiAnimation(OnEvent.click).addEffect(
new YuiEffect(YuiEffect.Type.BlindUp, delay)).addEffect(
new YuiEffect(YuiEffect.Type.BlindDown)).addEffect(
new YuiEffect(YuiEffect.Type.BlindRight, delay)).addEffect(
new YuiEffect(YuiEffect.Type.Drop)).addEffect(
new YuiEffect(YuiEffect.Type.Appear, delay)));
// Blind
newAnimatedComponent("blindup", OnEvent.click, YuiEffect.Type.BlindUp, true);
newAnimatedComponent("blinddown", OnEvent.click, YuiEffect.Type.BlindDown, true);
newAnimatedComponent("blindleft", OnEvent.click, YuiEffect.Type.BlindLeft, true);
newAnimatedComponent("blindright", OnEvent.click, YuiEffect.Type.BlindRight, true);
// Blind Right + with attributes
WebMarkupContainer blindright;
add(blindright = new WebMarkupContainer("blindright_binded"));
// set up attributes
Attributes blindrightAttributes = new Attributes("bind", "right");
blindrightAttributes.add(delay);
blindright.add(new YuiAnimation(OnEvent.click).addEffect(
new YuiEffect(YuiEffect.Type.BlindRight, blindrightAttributes)).addEffect(
new YuiEffect(YuiEffect.Type.Appear, delay)));
// Click for Info ...
WebMarkupContainer info;
add(info = new WebMarkupContainer("info"));
info.add(new YuiAnimation(OnEvent.click, "clickformore").addEffect(new YuiEffect(
YuiEffect.Type.BlindDown, delay)));
info.add(new YuiAnimation(OnEvent.click, "clickformore").addEffect(new YuiEffect(
YuiEffect.Type.BlindUp, delay)));
}