UNPKG

@titanium/turbo

Version:

<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>

26 lines (22 loc) 536 B
// Establish inheritance from baseDialog exports.baseController = 'baseDialog'; // Override baseDialog's openDialog() function. We will still // be able to use baseDialog's closeDialog() function. exports.openDialog = function(win) { $.refWin = win; // make invisible $.cover.opacity = 0; $.dialog.opacity = 0; // add to reference window $.refWin.add($.cover); $.refWin.add($.dialog); // animate in the opacity $.cover.animate({ duration: 500, opacity: 0.5 }); $.dialog.animate({ duration: 500, opacity: 1 }); };