Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

In-app navigation

This article needs a technical review. How you can help.

Animations shown when you move deeper within the interface of a navigation, and then move out again.

Visualization

Code

/*------- Go Deeper -------*/
animation: currentToLeft 0.4s forwards;
@keyframes currentToLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

animation: rightToCurrent 0.4s forwards;
@keyframes rightToCurrent {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/*------- Go Back -------*/
animation: leftToCurrent 0.4s forwards;
@keyframes leftToCurrent {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

animation: currentToRight 0.4s forwards;
@keyframes currentToRight {
  0%   { transform: translateX(0); }
  100% { transform: translateX(100%); }
}


Document Tags and Contributors

 Contributors to this page: chrisdavidmills, Uemmra3, kscarfone
 Last updated by: chrisdavidmills,