Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15889 from timdream/lockscreen-transitionz
Browse files Browse the repository at this point in the history
Bug 966711 - Use translateZ() for lockscreen fade-out transition, r=snowmantw
  • Loading branch information
timdream committed Feb 3, 2014
2 parents 6901d4f + d8b3adf commit 75e9691
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/system/style/lockscreen/lockscreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
that we might be slow at the beginning of the transition. */
transition:
transform 0.5s cubic-bezier(0.7, 0.0, 1.0, 1.0),
opacity 0.5s cubic-bezier(0.7, 0.0, 1.0, 1.0),
opacity 0.5s cubic-bezier(0.7, 0.0, 1.0, 1.0);
}

#screen.active-statusbar > #lockscreen {
Expand All @@ -20,7 +20,11 @@
}

#lockscreen.unlocked {
transform: scale(2);
/* Workaround specifically targetting Gecko:
The transform here is equal to scale(2),
however this will stop Gecko from creating a 2x big layer (4x the memory),
resulting super-smooth transition. */
transform: perspective(1000px) translateZ(500px);
opacity: 0;
pointer-events: none;
}
Expand Down

0 comments on commit 75e9691

Please sign in to comment.