Skip to content

Commit 8e6f6ef

Browse files
committed
Fixed SharedAxis animation transition.
1 parent 0377fc9 commit 8e6f6ef

File tree

2 files changed

+147
-9
lines changed

2 files changed

+147
-9
lines changed

gwt-material/src/main/resources/gwt/material/design/public/css/animation.css

Lines changed: 146 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,6 +3452,36 @@
34523452
animation-name: sharedAxisXForwardIn;
34533453
}
34543454

3455+
/** Shared Axis X ForwardOut **/
3456+
@-webkit-keyframes sharedAxisXForwardOut {
3457+
from {
3458+
opacity: 1;
3459+
transform: translateX(0px);
3460+
}
3461+
3462+
to {
3463+
opacity: 0;
3464+
transform: translateX(-30px);
3465+
}
3466+
}
3467+
3468+
@keyframes sharedAxisXForwardOut {
3469+
from {
3470+
opacity: 1;
3471+
transform: translateX(0px);
3472+
}
3473+
3474+
to {
3475+
opacity: 0;
3476+
transform: translateX(-30px);
3477+
}
3478+
}
3479+
3480+
.sharedAxisXForwardOut {
3481+
-webkit-animation-name: sharedAxisXForwardOut;
3482+
animation-name: sharedAxisXForwardOut;
3483+
}
3484+
34553485
/** Shared Axis X BackwardIn **/
34563486
@-webkit-keyframes sharedAxisXBackwardIn {
34573487
from {
@@ -3482,34 +3512,34 @@
34823512
animation-name: sharedAxisXBackwardIn;
34833513
}
34843514

3485-
/** Shared Axis X ForwardOut **/
3486-
@-webkit-keyframes sharedAxisXForwardOut {
3515+
/** Shared Axis X BackwardIn **/
3516+
@-webkit-keyframes sharedAxisXBackwardOut {
34873517
from {
34883518
opacity: 1;
34893519
transform: translateX(0px);
34903520
}
34913521

34923522
to {
34933523
opacity: 0;
3494-
transform: translateX(-30px);
3524+
transform: translateX(30px);
34953525
}
34963526
}
34973527

3498-
@keyframes sharedAxisXForwardOut {
3528+
@keyframes sharedAxisXBackwardOut {
34993529
from {
35003530
opacity: 1;
35013531
transform: translateX(0px);
35023532
}
35033533

35043534
to {
35053535
opacity: 0;
3506-
transform: translateX(-30px);
3536+
transform: translateX(30px);
35073537
}
35083538
}
35093539

3510-
.sharedAxisXForwardOut {
3511-
-webkit-animation-name: sharedAxisXForwardOut;
3512-
animation-name: sharedAxisXForwardOut;
3540+
.sharedAxisXBackwardOut {
3541+
-webkit-animation-name: sharedAxisXBackwardOut;
3542+
animation-name: sharedAxisXBackwardOut;
35133543
}
35143544

35153545
/** Shared Axis Y ForwardIn **/
@@ -3572,6 +3602,66 @@
35723602
animation-name: sharedAxisYForwardOut;
35733603
}
35743604

3605+
/** Shared Axis Y BackwardIn **/
3606+
@-webkit-keyframes sharedAxisYBackwardIn {
3607+
from {
3608+
opacity: 0;
3609+
transform: translateY(-30px);
3610+
}
3611+
3612+
to {
3613+
opacity: 1;
3614+
transform: translateY(0px);
3615+
}
3616+
}
3617+
3618+
@keyframes sharedAxisYBackwardIn {
3619+
from {
3620+
opacity: 0;
3621+
transform: translateY(-30px);
3622+
}
3623+
3624+
to {
3625+
opacity: 1;
3626+
transform: translateY(0px);
3627+
}
3628+
}
3629+
3630+
.sharedAxisYBackwardIn {
3631+
-webkit-animation-name: sharedAxisYBackwardIn;
3632+
animation-name: sharedAxisYBackwardIn;
3633+
}
3634+
3635+
/** Shared Axis Y BackwardOut **/
3636+
@-webkit-keyframes sharedAxisYBackwardOut {
3637+
from {
3638+
opacity: 1;
3639+
transform: translateY(0px);
3640+
}
3641+
3642+
to {
3643+
opacity: 0;
3644+
transform: translateY(30px);
3645+
}
3646+
}
3647+
3648+
@keyframes sharedAxisYBackwardOut {
3649+
from {
3650+
opacity: 1;
3651+
transform: translateY(0px);
3652+
}
3653+
3654+
to {
3655+
opacity: 0;
3656+
transform: translateY(30px);
3657+
}
3658+
}
3659+
3660+
.sharedAxisYBackwardOut {
3661+
-webkit-animation-name: sharedAxisYBackwardOut;
3662+
animation-name: sharedAxisYBackwardOut;
3663+
}
3664+
35753665
/** Shared Axis Z In **/
35763666
@-webkit-keyframes sharedAxisZIn {
35773667
from {
@@ -3645,4 +3735,52 @@
36453735
transition-delay: 0s !important;
36463736
will-change: none !important;
36473737
}
3738+
}
3739+
3740+
@-webkit-keyframes breathing {
3741+
0% {
3742+
-webkit-transform: scale(0.9);
3743+
transform: scale(0.9);
3744+
}
3745+
3746+
25% {
3747+
-webkit-transform: scale(1);
3748+
transform: scale(1);
3749+
}
3750+
3751+
60% {
3752+
-webkit-transform: scale(0.9);
3753+
transform: scale(0.9);
3754+
}
3755+
3756+
100% {
3757+
-webkit-transform: scale(0.9);
3758+
transform: scale(0.9);
3759+
}
3760+
}
3761+
3762+
@keyframes breathing {
3763+
0% {
3764+
-webkit-transform: scale(0.9);
3765+
-ms-transform: scale(0.9);
3766+
transform: scale(0.9);
3767+
}
3768+
3769+
25% {
3770+
-webkit-transform: scale(1);
3771+
-ms-transform: scale(1);
3772+
transform: scale(1);
3773+
}
3774+
3775+
60% {
3776+
-webkit-transform: scale(0.9);
3777+
-ms-transform: scale(0.9);
3778+
transform: scale(0.9);
3779+
}
3780+
3781+
100% {
3782+
-webkit-transform: scale(0.9);
3783+
-ms-transform: scale(0.9);
3784+
transform: scale(0.9);
3785+
}
36483786
}

gwt-material/src/main/resources/gwt/material/design/public/css/animation.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)