<html lang="en">
	<head>
		
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Animated Background</title>
		<link type="text/css" rel="stylesheet" href="style.css">
	</head>
	<body>

		<figure>
			<img width="100%" src="http://res.cloudinary.com/duqzvuawc/image/upload/v1508813538/harbor_d2rhpy.png">
		</figure>

		<article>
			<h1>Look at This Fancy Background</h1>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis leo neque, cursus non arcu id, volutpat tincidunt magna. Ut sit amet vehicula sapien. Donec nec vehicula tortor. Nam tincidunt ut lorem nec porttitor. Mauris accumsan, orci at vehicula condimentum, lorem nisl feugiat sapien, sed varius erat nisl a dolor. Donec vehicula mauris eu nunc porta, quis rutrum enim bibendum. Donec laoreet venenatis sagittis.  </p>
			<p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean euismod consequat maximus. Cras feugiat augue vel eros efficitur porta. Sed eget sem sed tellus sagittis facilisis tempor vitae magna. Morbi varius faucibus nunc, sit amet ornare sapien efficitur vitae. Nulla condimentum urna at ligula commodo rutrum. Proin rhoncus in nunc ut finibus. Sed consectetur dolor a quam pulvinar iaculis.</p>
		
		</article>

	</body>
</html>


@import url('https://fonts.googleapis.com/css?family=Roboto+Slab|Satisfy');

body {
	font-size:16px;
	font-family: 'Roboto Slab', serif;
	color: #fff;
	margin: 0;
	padding: 0;
	background-color: #90cde3;
}

article {
	width: 70%;
	margin: 40px auto 0 auto;
	padding: 20px;
	position: relative;
}

h1 {
	font-size: 3.85em;
	margin: 0 0 .5em 0;
	font-family: 'Satisfy', cursive;
}

figure {
	width: 100%;
	margin: 0;
	padding: 350px 0 0 0;
	position: absolute;
	left: 0;
	bottom: 0px;
	overflow: hidden;
  background: url(http://res.cloudinary.com/duqzvuawc/image/upload/c_scale,h_424/v1508813537/clouds_tile_efhbuh.jpg);
  animation: clouds_animation 75s linear infinite;
}

@keyframes clouds_animation {
  
  0%  {background-position: 0 0;}
  100%  {background-position: -2122px 0;}
}







External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.