Effect target 效果

Class

Effect target 效果

加入初始样式

KISSY.use("node,overlay,button,dd", function (S, Node, O, B) {
    var show = new B({
        content:"收藏",

        render:"#button-wrap"
    });
    show.render();

    var dialog = new O.Dialog({
        width:400,
        headerContent:'收藏',
        bodyContent:'<iframe scrolling="no" height="200" width="398" frameborder="0" name="popupIframe" src="http://favorite.taobao.com/popup/add_collection.htm?id=10166801469&amp;itemtype=1&amp;scjjc=1&amp;_tb_token_=3b38ed73a7775&amp;t=1305543755536"></iframe>',
        mask:{
            duration:.3,
            effect:'fade',
            easing:'backOut'
        },
        align:{
            points:['cc', 'cc']
        },
        effect:{
            duration:.3,
            easing:'backOut',
            target:show.get("el")
        }
    });

    show.on("click", function () {
        dialog.show();
    });

});