* {
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	background: #333;
}

a {
	position: relative;
	padding: 20px 50px;
	text-decoration: none;
	color: #FFE816;
	font-size: 2em;
	text-transform: uppercase;
	font-family: Poppins;
	letter-spacing: 4px;
	overflow: hidden;
	background: rgba(255,255,255, .1);
	box-shadow: 0 5px 5px rgba(0,0,0, .2);
}

a:before {
	content:'';
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: rgba(255,255,255, .1);
}

a:after {
	content:'';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255, .4), transparent);
	transition: .5s;
	transition-delay: .5s;
}

a:hover:after {
	left: 100%;
}

a span {
	position: absolute;
	display: block;
	transition: .5s ease;
}

a span:nth-child(1) {
	top: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: #fff;
}

a:hover span:nth-child(1) {
	width: 100%;
	transform: translateX(100%);
}

a span:nth-child(3) {
	bottom: 0;
	right: 0;
	width: 0;
	height: 1px;
	background: #fff;
}

a:hover span:nth-child(3) {
	width: 100%;
	transform: translateX(-100%);
}

a span:nth-child(2) {
	top: 0;
	left: 0;
	width: 1px;
	height: 0;
	background: #fff;
}

a:hover span:nth-child(2) {
	height: 100%;
	transform: translateY(100%);
}

a span:nth-child(4) {
	bottom: 0;
	right: 0;
	width: 1px;
	height: 0;
	background: #fff;
}

a:hover span:nth-child(4) {
	height: 100%;
	transform: translateY(-100);
}