Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save d30jeff/846e8d9a4e05121f902b to your computer and use it in GitHub Desktop.

Select an option

Save d30jeff/846e8d9a4e05121f902b to your computer and use it in GitHub Desktop.
Main.js
<!-- HTML -->
<div id="basicWipeNode" class="popupMessageBox" data-dojo-type="dijit/layout/ContentPane" style="width: 200px; height: 50px;">
<b id="messageContainer"></b>
</div>
<!-- End of HTML -->
loadMsgBox: function(msg, msgType) {
var messageBox = dom.byId('basicWipeNode');
var messageContainer = dom.byId('messageContainer')
var boxColor = '';
switch(msgType) {
case 'create':
boxColor = 'lightblueColor';
break;
case 'update':
boxColor = 'lightgreenColor';
break;
case 'delete':
boxColor = 'lightgreyColor';
boxIcon = 'popupDelete';
domClass.add(messageBox, boxColor);
break;
default:
break;
}
messageBox.children[0].innerHTML = msg;
domStyle.set(messageBox, {
left:((window.innerWidth - messageBox.clientWidth)/2)+'px',
display: 'block',
opacity: 5,
top: '100px',
});
Fx.wipeIn({
node: messageBox,
}).play();
setTimeout(function(){
Fx.wipeOut({
node: messageBox,
}).play();
}, 1000);
},
@d30jeff

d30jeff commented Mar 24, 2015

Copy link
Copy Markdown
Author

Yes

@zeikman

zeikman commented Mar 25, 2015

Copy link
Copy Markdown

Jeff, can you try to enhance your animation effect ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment