2023-02-03 20:04:43 +00:00
|
|
|
effects.desktopChanged.connect(function(old, current) {
|
2018-10-10 08:58:17 +00:00
|
|
|
var stackingOrder = effects.stackingOrder;
|
|
|
|
for (var i=0; i<stackingOrder.length; i++) {
|
|
|
|
var w = stackingOrder[i];
|
|
|
|
//1 second long random animation, marked as fullscreen
|
|
|
|
w.anim1 = animate({
|
|
|
|
window: w,
|
|
|
|
duration: 1000,
|
|
|
|
fullScreen: true,
|
|
|
|
animations: [{
|
|
|
|
type: Effect.Scale,
|
|
|
|
curve: Effect.GaussianCurve,
|
|
|
|
to: 1.4
|
|
|
|
}, {
|
|
|
|
type: Effect.Opacity,
|
|
|
|
curve: Effect.GaussianCurve,
|
|
|
|
to: 0.0
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|