html,
body {
	height: 100%;
	display: flex;
	align-items: top;
	justify-content: left;
	background-color: white;
}



.box {
	display: flex;

}

.box .inner {
	width: 500px;
	height: 230px;
	line-height: 50px;
	font-size: 1.5em;
	font-family: sans-serif;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
}

.box .inner:first-child {
	background-color: white;
	color: black;
	transform-origin: right;
	transform: perspective(100px) rotateY(-15deg);
}

.box .inner:last-child {
	background-color: white;
	color: lightgrey;
	transform-origin: left;
	transform: perspective(100px) rotateY(15deg);
}

.box .inner span {
	position: absolute;
	animation: marquee 10s linear infinite;
}

.box .inner:first-child span {
	animation-delay: 5s;
	left: -100%;
}

@keyframes marquee {
	from {
		left: 100%;
	}

	to {
		left: -100%;
	}
}