如何在dojo中指定wipeIn方向

时间:2015-06-22 11:35:25

标签: animation dojo effects

如何更改wipeIn的方向? 这个例子从顶部擦除。如何从底部,左边或右边擦拭?

require(["dojo/fx", "dojo/dom", "dojo/dom-style", "dojo/on", "dojo/domReady!"],
function(coreFx, dom, style, on){
  on(dom.byId("basicWipeButton"), "click", function(){
    style.set("basicWipeNode", "display", "none");
    coreFx.wipeIn({
      node: "basicWipeNode"
    }).play();
  });
});

<button type="button" id="basicWipeButton">Wipe It In!</button>
<div id="basicWipeNode" style="width: 200px; background-color: red; display: none;">
  <b>This is a container of random content to wipe in!</b>
</div>

0 个答案:

没有答案