@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
	box-sizing: border-box;
}

body {
	background-color: #efefef;
	font-family: "Roboto", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow-x: hidden;
	
}

.container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.box {
	background-color: steelblue;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px;
	border-radius: 10px;
	box-shadow: 2px 4px 5px rgba(0, 0, 0,.3);
	width: 400px;
	height: 200px;
	transform: translateX(400%);
	transition: transform .4s ease;
	font-size: 40px;
}

.box:nth-child(even) {
	transform: translateX(-400%);
}

.box.show {
	transform: translateX(0);
}
