Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Last active August 29, 2015 14:17
Show Gist options
  • Save d30jeff/846e8d9a4e05121f902b to your computer and use it in GitHub Desktop.
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);
},
@zeikman
Copy link

zeikman commented Mar 24, 2015

Jeff, regarding your animation effect at my machine, it is just the bottom part of the box expanding downward, then back to normal, and finally disappear, is that the effect correct ?

@d30jeff
Copy link
Author

d30jeff commented Mar 24, 2015

Yes

@zeikman
Copy link

zeikman commented Mar 25, 2015

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