File indexing completed on 2024-11-10 04:55:54

0001 effects.desktopChanged.connect(function(old, current) {
0002     var stackingOrder = effects.stackingOrder;
0003     for (var i=0; i<stackingOrder.length; i++) {
0004         var w = stackingOrder[i];
0005         //1 second long random animation, marked as fullscreen
0006         w.anim1 = animate({
0007             window: w,
0008             duration: 1000,
0009             fullScreen: true,
0010             animations: [{
0011                 type: Effect.Scale,
0012                 curve: Effect.GaussianCurve,
0013                 to: 1.4
0014             }, {
0015                 type: Effect.Opacity,
0016                 curve: Effect.GaussianCurve,
0017                 to: 0.0
0018             }]
0019         });
0020     }
0021 });