Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
g-panels: fix transitions in canary where @Keyframes is supported but…
Browse files Browse the repository at this point in the history
… transform is not.
  • Loading branch information
sorvell committed Sep 24, 2013
1 parent b7de4e5 commit a2b6f70
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions elements/css/g-panels-transitions.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,18 @@
z-index: 0;
opacity: 0.5;
transform: scale(0.9) translateZ(0);
-webkit-transform: scale(0.9) translateZ(0);
}
20% {
z-index: 0;
transform: scale(0.9) translateZ(0);
-webkit-transform: scale(0.9) translateZ(0);
}
100% {
z-index: 0;
opacity: 1;
transform: scale(1) translateZ(0);
-webkit-transform: scale(1) translateZ(0);
}
}

Expand All @@ -131,15 +134,18 @@
z-index: 0;
opacity: 1;
transform: scale(1) translateZ(0);
-webkit-transform: scale(1) translateZ(0);
}
20% {
z-index: 0;
transform: scale(0.9) translateZ(0);
-webkit-transform: scale(0.9) translateZ(0);
}
100% {
z-index: 0;
opacity: 0.5;
transform: scale(0.9) translateZ(0);
-webkit-transform: scale(0.9) translateZ(0);
}
}

Expand All @@ -158,10 +164,12 @@
0% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(100%, 0, 0);
-webkit-transform: translate3d(100%, 0, 0);
}
}

Expand All @@ -180,10 +188,12 @@
0% {
z-index: 1;
transform: translate3d(100%, 0, 0);
-webkit-transform: translate3d(100%, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
}

Expand All @@ -202,10 +212,12 @@
0% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(-100%, 0, 0);
-webkit-transform: translate3d(-100%, 0, 0);
}
}

Expand All @@ -224,10 +236,12 @@
0% {
z-index: 1;
transform: translate3d(-100%, 0, 0);
-webkit-transform: translate3d(-100%, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
}

Expand All @@ -246,10 +260,12 @@
0% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(0, 100%, 0);
-webkit-transform: translate3d(0, 100%, 0);
}
}

Expand All @@ -268,10 +284,12 @@
0% {
z-index: 1;
transform: translate3d(0, 100%, 0);
-webkit-transform: translate3d(0, 100%, 0);
}
100% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
}

Expand All @@ -290,10 +308,12 @@
0% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
100% {
z-index: 1;
transform: translate3d(0, -100%, 0);
-webkit-transform: translate3d(0, -100%, 0);
}
}

Expand All @@ -312,10 +332,12 @@
0% {
z-index: 1;
transform: translate3d(0, -100%, 0);
-webkit-transform: translate3d(0, -100%, 0);
}
100% {
z-index: 1;
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
}

Expand All @@ -333,10 +355,12 @@
@keyframes g-panels-explodeOut {
0% {
transform: scale(1) translateZ(0);
-webkit-transform: scale(1) translateZ(0);
opacity: 1;
}
100% {
transform: scale(0) translateZ(0);
-webkit-transform: scale(0) translateZ(0);
opacity: 0;
}
}
Expand All @@ -358,11 +382,13 @@
0% {
z-index: 1;
transform: scale(0) translateZ(0);
-webkit-transform: scale(0) translateZ(0);
opacity: 0;
}
100% {
z-index: 1;
transform: scale(1) translateZ(0);
-webkit-transform: scale(1) translateZ(0);
opacity: 1;
}
}
Expand All @@ -382,10 +408,12 @@
0% {
z-index: 1;
transform: translate3d(0,0,0) rotate(0);
-webkit-transform: translate3d(0,0,0) rotate(0);
}
100% {
z-index: 1;
transform: translate3d(10%, -110%, 0) rotate(5deg);
-webkit-transform: translate3d(10%, -110%, 0) rotate(5deg);
}
}

Expand All @@ -404,9 +432,11 @@
0% {
z-index: 1;
transform: translate3d(10%, -110%, 0) rotate(5deg);
-webkit-transform: translate3d(10%, -110%, 0) rotate(5deg);
}
100% {
z-index: 1;
transform: translate3d(0,0,0) rotate(0deg);
-webkit-transform: translate3d(0,0,0) rotate(0deg);
}
}

0 comments on commit a2b6f70

Please sign in to comment.