You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for UX where navigation flies in from the side of the screen or a rollup that swoops in from the bottom of the screen, use translate3d().
the advantage is that you do not need to know the height or width. Whereas using negative margin or top, bottom, etc requires that an exact measurement to push off screen
add transition: transform 0.5s to have it smoothly move in and out.
transform:translate3d(0,100%,0); // push off screen
...
transform:translate3d(0, 100%, 0); //backonscreen
Enable Border Box
html {
box-sizing: border-box;
}
*,*::before,*::after {
box-sizing: inherit;
}