kwin/autotests/integration/effects/scripts/animationTest.js

13 lines
357 B
JavaScript
Raw Normal View History

effects.windowAdded.connect(function(w) {
w.anim1 = effect.animate(w, Effect.Scale, 100, 1.4, 0.2, 0, QEasingCurve.OutCubic);
sendTestResponse(typeof(w.anim1) == "number");
w.minimizedChanged.connect(() => {
if (w.minimized) {
retarget(w.anim1, 1.5, 200);
} else {
cancel(w.anim1);
}
});
});