From 26d642aff10e3ad78741853eab246db832b85600 Mon Sep 17 00:00:00 2001 From: parksanghee Date: Tue, 31 Jan 2017 20:28:05 +0900 Subject: [PATCH] fade.edc: use map for smooth animation Change-Id: I89a856cac35f3db6e1e1973a5b9a6f5759c38555 --- data/group/fade.edc | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/data/group/fade.edc b/data/group/fade.edc index 10b8b26..f81fd58 100644 --- a/data/group/fade.edc +++ b/data/group/fade.edc @@ -67,8 +67,8 @@ group { name: "e/comp/effects/fade"; part { name: "shower"; type: SPACER; description { state: "default" 0.0; - rel1.relative: 0.05 0.05; - rel2.relative: 0.95 0.95; + rel1.relative: 0 0; + rel2.relative: 1 1; } description { state: "visible" 0.0; inherit: "default" 0.0; @@ -95,16 +95,36 @@ group { name: "e/comp/effects/fade"; description { state: "default" 0.0; rel1.to: "shower"; rel2.to: "shower"; + map { + on: 1; + smooth: 1; + zoom.x: 0.9; + zoom.y: 0.9; + } } description { state: "visible" 0.0; rel1.to: "shower"; rel2.to: "shower"; + map { + on: 1; + smooth: 1; + zoom.x: 1; + zoom.y: 1; + } } description { state: "hide" 0.0; - rel1.to: "shower"; - rel2.to: "shower"; + inherit: "default" 0.0; + } + description { state: "restack_visible" 0.0; + inherit: "visible" 0.0; + } + description { state: "restack_hidden" 0.0; + inherit: "default" 0.0; } - } + description { state: "restack_done" 0.0; + inherit: "visible" 0.0; + } + } } programs { program { name: "show1"; @@ -134,6 +154,7 @@ group { name: "e/comp/effects/fade"; transition: LINEAR 0.01; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "hide2"; } program { name: "hide2"; @@ -141,12 +162,14 @@ group { name: "e/comp/effects/fade"; transition: ACCEL_FAC 0.20 1.5; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "hide3"; } program { name: "hide3"; action: STATE_SET "default" 0.0; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "done"; } program { name: "restack,show1"; @@ -157,6 +180,7 @@ group { name: "e/comp/effects/fade"; transition: LINEAR 0.01; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "restack,show2"; } program { name: "restack,show2"; @@ -175,6 +199,7 @@ group { name: "e/comp/effects/fade"; transition: LINEAR 0.01; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "restack,hide2"; } program { name: "restack,hide2"; @@ -182,6 +207,7 @@ group { name: "e/comp/effects/fade"; transition: ACCEL_FAC 0.20 1.5; target: "shower"; target: "clipper"; + target: "e.swallow.content"; after: "done"; } program { name: "restack,finish"; -- 2.7.4