Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                .top
	.stars
		- for (var i = 1; i <= 30; i++)
			.star
	.clouds-1
		- for (var i = 1; i <= 2; i++)
			.cloud-1.cloud
	.clouds-2
		- for (var i = 1; i <= 2; i++)
			.cloud-2.cloud
				.cloud-2-1
				.cloud-2-2
	.clouds-3
		- for (var i = 1; i <= 2; i++)
			.cloud-3
				.cloud-3-1
				.cloud-3-2
				.cloud-3-3
	.birds
		- for (var i = 1; i <= 4; i++)
			.bird
				.left-wing
				.right-wing
	.lighthouse-hill-container
		.lighthouse-hill-1
		.lighthouse-hill-2
		.lighthouse-hill-3
	.lighthouse-container
		.light-shine-1
		.light-shine-2sun
	
		.lighthouse-spire-spike
		.lighthouse-spire
		.light-house-top
			.light-house-top-top.left
			.light-house-top-top.right
		.light-house-light-container
			lighthouse-light
		.light-head-railings
			.railings.railings-1
			.railings.railings-2
			.railings.railings-3
			.railings.railings-4
			.railings.railings-5
			.railings.railings-6
			.railings.railings-7
			.railings.railings-8
		.background-light-1
		.background-light-2
		.background-light-3

		
		.light-head-base
		.light-top
		.light-bottom
		.stripe-1
		.stripe-2
		.stripe-3
		#rotate-x.panel-container
			.panel
		.light-base
	.sun
		.boat-container
			.boat-left-sail
			.boat-right-sail
			.boat-base-front
			.boat-base-back
	.sun-wave-container
		.sun-wave.sun-wave-1
		.sun-wave.sun-wave-2
		.sun-wave.sun-wave-3
.middle
		.sun-reflection
			.sun-ray.sun-ray-1
			.sun-ray.sun-ray-2
			.sun-ray.sun-ray-3
			.sun-ray.sun-ray-4
			.sun-ray.sun-ray-5
		.tree-container
			.tree-base
				.leaf-container
					.leaf.leaf-1
					.leaf.leaf-2
					.leaf.leaf-3
					.leaf.leaf-4
					.leaf.leaf-5
					.leaf.leaf-6
		.umbrella-container
			.arch.arch-1
			.umbrella-pole


.bottom
	.fore-beach-container
		.outer
			.inner
		.back-beach
		.fore-beach
	.ocean

              
            
!

CSS

              
                @import "color-schemer";
@import "compass";
@import "compass/css3/animation";

body {
	margin:  0;
	padding: 0;
	overflow: hidden;
}
.umbrella-container {
    position: absolute;
    height: 135px;
    width: 200px;
    left: 27vw;
    z-index: 2;
    @include transform(skew(0deg) rotate(-10deg));
	 bottom: -50%;
	
	@media screen and (max-width: 768px) {
		display: none;
	}
	@media screen and (max-width: 410px) {
   	 bottom: -18vh;
	}

	
}
.arch {
	position: absolute;
	left: 0px;
	height: 10vh;
	width: 120px;
	@include background-image(linear-gradient(to right, #7d4c4b, #704338));
}
.arch-1 {
	position: absolute;
    left: 67px;
    top: 20px;
    height: 48px;
    width: 102px;
	@include background-image(linear-gradient(to right, #7d4c4b, #704338));
    @include border-top-left-radius( 100%);
    @include border-top-right-radius( 100%);
    @include transform(skew(0deg) rotate(0deg));
}

.umbrella-pole {
    position: relative;
    height: 100vh;
    top: 7vh;
    width: 1vw;
    max-width: 6px;
    left: 113px;
    background: #764741;
}


.tree-container {
	width: 20px;
	height: 50vh;
	@include background-image(linear-gradient(to right, #92534f, #714338));
	bottom: -100%;
	position: absolute;
	z-index: 2;
	right: 80px;
	@include transform(rotate(-5deg) scale(1.2) perspective(300px));
	@include border-top-right-radius(200%);
	@media screen and (max-width: 768px) {
		display: none;
	}
}
.tree-base {
	@include background-image(linear-gradient(to right, #7d4c4b, #704338));
}
.leaf-container {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 13px;
    top: 2vh;
}
.leaf {
	position: absolute;
	height: 13px;
	width: 61px;
	@include background-image(linear-gradient(to right, #92534f, #714338));
	@include border-top-right-radius(100%);
	@include border-bottom-right-radius(10%);
}
.leaf-1 {	
	@include transform(rotate(-40deg) rotateY(180deg));
	right: -8%;
	top: 4px;
}
.leaf-2 {
	@include transform(rotate(0deg) rotateY(180deg));
	right: -4px;
	top: -15px;
}
.leaf-3 {
	@include transform(rotate(40deg) rotateY(180deg));
	right: -12px;
	top: -30px;	
}
.leaf-4 {
	@include transform(rotate(-32deg) rotateY(0deg));
	right: -46px;
	top: -29px;
}
.leaf-5 {
	@include transform(rotate(0deg) rotateY(0deg));
	right: -57px;
	top: -15px;
	z-index: 5;
}
.leaf-6 {
	@include transform(rotate(40deg) rotateY(0deg));
	right: -53px;
	top: 6px;
@include background-image(linear-gradient(to right, #8b504a, #714338));
	z-index: 4;
}

.clouds-1 {
	position: absolute;
	height: 60%;
	width: 100%;
	left: 0px;
	top: 0px;
	@for $i from 1 through (4) {
    $top: random(40);
    $left: random(100);
    $size: random(6)+0px;
	.cloud-1:nth-of-type(#{$i}) {
		position: absolute;
		height: 40px;
		width: 40px;
		@include background-image(linear-gradient(to right,  rgba(255, 255, 255, 0), #fff));
		top: $top * 1%;
      left: $left * 1%;
		@include border-top-left-radius(100%);
		@include border-top-right-radius(100%);
		@include transform(rotateX(40deg));
		@include opacity(0.6);
		z-index: 55;
	}
}

}


.clouds-2 {
	position: absolute;
	height: 60%;
	width: 100%;
	left: 0px;
	top: 0px;
	@for $i from 1 through (4) {
    $top: random(100);
    $left: random(100);
    $size: random(6)+0px;
    .cloud-2:nth-of-type(#{$i}) {
		position: relative;
		height: 40px;
		width: 80px;
		top: $top * 1%;
      left: $left * 1%;
		@include border-top-left-radius(100%);
		@include border-top-right-radius(100%);
		@include transform(rotateX(40deg));
		@include opacity(0.6);
		z-index: 55;
	}
		.cloud-2-1 {
			height: 50px;
			width: 50px;
			position: absolute;
			top: -10px;
			@include background-image(linear-gradient(to right,  rgba(255, 255, 255, 0), #fff));
			@include border-top-left-radius(100%);
			@include border-top-right-radius(100%);
		}		
		
		.cloud-2-2 {
			height: 70px;
			width: 100px;
			position: absolute;
			@include background-image(linear-gradient(to right, #fff, rgba(255, 255, 255, 0)));
			left: 50px;
			top: -30px;
			@include border-top-left-radius(100%);
			@include border-top-right-radius(100%);		
		}		
}
}

.clouds-3 {
	position: absolute;
	height: 60%;
	width: 90%;
	top: 0px;
	right: 0%;
	@for $i from 1 through (4) {
    $top: random(100);
    $left: random(100);
    $size: random(6)+0px;
    .cloud-3:nth-of-type(#{$i}) {
		position: relative;
		height: 40px;
		width: 80px;
		top: $top * 1%;
      left: $left * 1%;
		@include border-top-left-radius(100%);
		@include border-top-right-radius(100%);
		@include transform(rotateX(40deg));
		@include opacity(0.6);
		z-index: 55;
	}
		.cloud-3-1 {
			height: 50px;
			width: 50px;
			position: absolute;
			top: -10px;
			@include background-image(linear-gradient(to right,  rgba(255, 255, 255, 0), #fff));
			@include border-top-left-radius(100%);
			@include border-top-right-radius(100%);
		}		
		
		.cloud-3-2 {
			height: 70px;
			width: 100px;
			position: absolute;
			@include background-image(linear-gradient(to right, #fff, #fff));
			left: 50px;
			top: -30px;
			@include border-top-left-radius(100%);
			@include border-top-right-radius(100%);		
		}
		.cloud-3-3 {
			height: 40px;
			width: 40px;
			position: absolute;
			@include background-image(linear-gradient(to right, #fff, rgba(255, 255, 255, 0)));
			left: 150px;
			top: 0px;
			@include border-top-left-radius(100%);
			@include border-top-right-radius(100%);		
		}
}
}



#demo {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: -1;
}
.rerun {
  position: absolute;
  bottom: 5%;
  right: 5%;
}


.sun {
	position: absolute;
	height: 400px;
	width: 400px;
	background: #fee8ae;
	left: 45%;
	bottom: -130px;
	@include border-radius(100%);
	z-index: 3;
}
.sun-wave-container  {
	position: absolute;
	height: 400px;
	width: 800px;
	bottom: 0px;
	left: calc(45% - 200px);
	z-index: 0;
}
.sun-wave {
	position: relative;
	margin: auto;
	background: #fff;
	@include border-radius(100%);
	bottom: 300px;
}
.sun-wave-1 {
	position: absolute;
    height: 458px;
    width: 458px;
    margin: auto;
    background: #ea9a75;
    @include border-radius(100%);
    bottom: -158px;
    left: 172px;
	z-index: 3;
	@include animation-properties((animation: ray-1, animation-duration: 3s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
}
@keyframes ray-1 {
	0% {
		opacity: 0.6;
	}
	50% {
		opacity: 0.3;
	}
	100% {
		opacity: 0.6;
	}
}
.sun-wave-2 {
	position: absolute;
	height: 496px;
	width: 512px;
	margin: auto;
	background: #ea9a75;
	@include border-radius(100%);
	bottom: -168px;
	left: 146px;
	z-index: 2;
	@include animation-properties((animation: ray-2, animation-duration: 2s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
}
@keyframes ray-2 {
	0% {
		opacity: 0.6;
	}
	50% {
		opacity: 0.3;
	}
	100% {
		opacity: 0.6;
	}
}
.sun-wave-3 {
	position: absolute;
	height: 518px;
	width: 568px;
	margin: auto;
	background: #ea9a75;
	@include border-radius(100%);
	bottom: -163px;
	left: 115px;
	z-index: 1;
	@include animation-properties((animation: ray-3, animation-duration: 2s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
}
@keyframes ray-3 {
	0% {
		opacity: 0.41;
	}
	50% {
		opacity: 0.1;
	}
	100% {
		opacity: 0.41;
	}
}
.sun-reflection {
	position: absolute;
	bottom: 4vh;
	left: 45%;
	height: 15vh;
	width: 400px;
	z-index: 2;
}
.sun-ray {
	position: relative;
	margin: auto;
	background: #bbb5a5;
	margin-top: 2vh;
	height: 1vh;
	@include border-radius(10px);
}
.sun-ray-1 {
	width: 90%;
}
.sun-ray-2 {
	width: 60%;
}
.sun-ray-3 {
	width: 40%;
}
.sun-ray-4 {
	width: 20%;
}
.sun-ray-5 {
	width: 10%;
}
.light-house-top {
	width: 70px;
	top: -20px;
	left: 30px;
	height: 20px;
	background: #865143;
	position: relative;
	overflow: hidden;
	z-index: 5;
}
.lighthouse-spire {
	position: absolute;
	height: 17px;
	width: 17px;
	background: #834c40;
	top: -36px;
	left: 57px;
	@include border-top-left-radius(50%);
	@include border-top-right-radius(50%);
	z-index: 5;
}

.lighthouse-spire-spike {
	position: absolute;
	height: 17px;
	width: 3px;
	background: #834c40;
	top: -46px;
	left: 64px;
	z-index: 5;
}
.light-house-top div {
    position: absolute;
    width: 36px;
    height: 20px;
    @include border-radius(100%);
    background-color: #e79270;
	 z-index: 5;
}

.light-house-top-top { top: -10px; }
.bottom { bottom: -10px; }
.left { left: -10px; }
.right { right: -10px; }

.lighthouse-container {
	position: absolute;
	left: 0px;
	bottom: 192px;
	height: 42px;
	width: 7px;
	@include transform(perspective(600px));
	z-index: 1;
}
.light-top {
	position: absolute;
	height: 20px;
	width: 11px;
	background: #f7d299;	
	top: 60px;
	left: 64px;
	z-index: 4;
	@include border-top-right-radius(50px);
	@include border-top-left-radius(50px);
}
.stripe-1 {
	position: absolute;
    height: 30px;
    width: 53px;
    left: 37px;
    background: #925856;
    top: 55px;
	@include transform(skew(-37deg) rotate(-38deg) rotateY(49deg));
	z-index: 3;
	    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.stripe-2 {
	position: absolute;
height: 29px;
    width: 64px;
    left: 31px;
    background: #925856;
    top: 100px;
	z-index: 3;
	@include transform(skew(-38deg) rotate(-40deg) rotateY(49deg));
	@include border-top-left-radius(8px);
}
.stripe-3 {
	position: absolute;
	height: 30px;
	width: 72px;
	left: 28px;
	background: #925856;
	top: 147px;
	@include rotate(150deg);
	z-index: 3;
	@include transform(skew(-38deg) rotate(-41deg) rotateY(49deg));
	@include border-top-left-radius(8px);
}
.light-base {
	position: absolute;
	height: 30px;
	width: 64px;
	left: 38px;
	background: #925856;
	top: 169px;	
}
.light-head-base {
	position: absolute;
	height: 25px;
	width: 64px;
	left: 31px;
	background: #865143;
	top: 26px;	
	@include transform(rotateX(130deg));
	@include border-top-left-radius(28px);
	@include border-top-right-radius(25px);
	z-index: 4;
}

.light-head-railings {
	position: absolute;
	height: 16px;
	width: 50px;
	left: 39px;
	top: 18px;
	border: 3px solid #865244;
	@include border-top-left-radius(3px);
	@include border-top-right-radius(3px);
	z-index: 5;	
	@include transform(translate3d(0px, 0px, 0px));
}
.railings {
	width: 3px;
	height: 15px;
	background: #834c40;
}
.railings-1 {
	position: absolute;
	top: 0px;
	left: 2px;
}

.railings-2 {
	position: absolute;
	top: 0px;
	left: 7px;
}
.railings-3{
	position: absolute;
	top: 0px;
	left: 12px;
}

.railings-4 {
	position: absolute;
	top: 0px;
	left: 17px;
}

.railings-5 {
	position: absolute;
	top: 0px;
	left: 22px;
}

.railings-6 {
	position: absolute;
	top: 0px;
	left: 27px;
}

.railings-7 {
	position: absolute;
	top: 0px;
	left: 32px;
}
.railings-8 {
	position: absolute;
	top: 0px;
	left: 37px;
}
.light-house-light-container {
    position: absolute;
    height: 36px;
    width: 42px;
    background: #fee8ae;
    top: 0px;
    left: 43px;
	 z-index: 1;
	@include animation-properties((animation: lighthouseContainerLight, animation-duration: 3s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
}
@keyframes lighthouseContainerLight {
	0% {		
		background: #998e6f;	
	}
	50% {
		 background: #fee8ae;
	}
	100% {
			background: #998e6f;		
	}
} 

.light-bottom {
	position: absolute;
	height: 20px;
	width: 11px;
	background: #f7d299;	
	top: 110px;
	left: 51px;
	z-index: 4;
	@include border-top-right-radius(50px);
	@include border-top-left-radius(50px);
}
.lighthouse {	
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 4;
	background: #fff;
	@include transform(rotateX( 4deg ));
}
.lighthouse-hill-container {
	position: absolute;
	bottom: 0vh;
	height: 51px;
	width: 100px;
	z-index: 5;
}
.lighthouse-hill-1 {
	position: absolute;
	height: 96px;
	width: 242px;
	background: #704439;	
	@include border-top-right-radius(0px);
	@include transform(skew(69deg) rotateX(16deg) rotateY(-8deg) scale(2.8) rotate(56deg) translate(5px,5px));
}
.lighthouse-hill-2 {
	position: relative;
	height: 60px;
	width: 104px;
	@include background-image(linear-gradient(to right, #a95f56, #704439));
	left: 248px;
	top: 18px;
	@include border-bottom-left-radius(26px);
	@include transform(skew(64deg) rotate(-188deg) scale(1.4));
}

.lighthouse-hill-3 {
	position: absolute;
	height: 33px;
	width: 67px;
	left: 364px;
	top: 28px;
	@include background-image(linear-gradient(to right, #a95f56, #e18d68));
	@include border-top-right-radius(100px);
	@include transform(skew(64deg));
}
.middle {
	position: absolute;
	@include background-image(linear-gradient(to right, #2f6ea1 30%, #818994 60%, #376390));
	height: 20vh;
	width: 100%;
	bottom: 20vh;	
}
.bottom {
	position: absolute;
	@include background-image(linear-gradient(to right, #2f6ea1 30%, #818994 60%, #376390));
	height: 30vh;
	width: 100%;
	bottom: 0px;
	left: 0px;
	overflow: hidden;
}
.top {
	position: absolute;
	background: #de6353;
	height: 60vh;
	width: 100%;
	z-index: 0;
	overflow: hidden;
}
.boat-container {
	position: absolute;
	height: 100px;
	width: 100px;
	bottom: 130px;
	left: 96%;
	z-index: 5;
}
.boat-left-sail {
	position: absolute;
	height: 80px;
	width: 26px;
	background: #6e4237;
	bottom: 18px;
	left: 5px;
	@include border-top-left-radius(100%);
	@include transform(skew(-10deg) rotateX(0deg) rotateY(0deg) rotate(5deg));
}

.boat-right-sail {
	position: absolute;
	height: 65px;
	width: 15px;
	background: #6e4237;
	bottom: 8px;
	left: 30px;
	@include border-top-left-radius(100%);
	@include border-bottom-left-radius(4px);
	@include transform(skew(1deg) rotateX(40deg) rotateY(180deg) rotate(-12deg));

}
.boat-base-front {
	position: absolute;
	height: 15px;
	width: 65px;
	background: #6e4237;
	bottom: -3px;
	left: -50px;
	@include border-bottom-left-radius(100%);
	@include transform(skew(0deg) rotateX(0deg) rotateY(0deg) rotate(5deg));
}
.boat-base-back {
	position: absolute;
	height: 15px;
	width: 45px;
	background: #6e4237;
	bottom: -2px;
	left: 3px;
	@include border-bottom-right-radius(20px);
	@include transform(skew(-10deg) rotateX(0deg) rotateY(0deg) rotate(5deg));	
}
			

.back-beach {
	position: absolute;
	height: 20vh;
	width: 54vw;
	background: #b57061;
	z-index: 2;
	bottom: 0px;
	right: -96px;
	@include transform(skew(-20deg) rotate(0deg) rotateX(0deg));
	@include border-top-left-radius(100%);
	@include border-top-right-radius(5%);
	@media screen and (max-width: 768px) {
		display: none;
	}
}
// 

.fore-beach {
	position: absolute;
	height: 18vh;
	width: 40%;
	background: #b57061;
	z-index: 12;
	bottom: -18vh;
	left: 10%;
	@include transform(skew(69deg) rotateX(12deg) scale(3));
	@include border-top-right-radius(36%);
	@include background-image(linear-gradient(to bottom right, #825154, #b67162));	
	@media screen and (max-width: 768px) {
		width: 100%;
	}
}

.panel-container {
width: 129px;
    height: 179px;
    border: 0px solid #CCC;
    margin: 0 auto 60px;
    position: absolute;
    @include transform(perspective(300px));
	top: 0px;
	left: 0px;
}
#rotate-x .panel {
	@include background-image(linear-gradient(to right, #925554, #834c40));
	width: 49px;
    height: 100%;
    margin: auto;
    @include transform(perspective(262px) rotateX(44deg) translate3d(0px, 0px, 0px));
}
.background-light-1 {
    position: absolute;
    top: -35px;
    left: 18px;
    height: 94px;
    width: 94px;
    background: #e79270;
    z-index: 0;
    @include border-radius(100%);
	@include transform(translate3d(0px, 0px, 0px));
}

.background-light-2 {
	position: absolute;
	top: -51px;
	left: 3px;
	height: 125px;
	width: 125px;
	background: #e79270;
	z-index: 0;
	@include border-radius(100%);
	z-index: 0;
	opacity: 0.6;
	@include animation-properties((animation: lighthouseBG-2, animation-duration: 3s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
	@include transform(translate3d(0px, 0px, 0px));
	
}

.background-light-3 {
	position: absolute;
	top: -71px;
	left: -10px;
	height: 165px;
	width: 155px;
	background: #e79270;
	z-index: 0;
	@include border-radius(100%);
	z-index: 0;
	opacity: 0.3;
	@include animation-properties((animation: lighthouseBG, animation-duration: 3s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
	@include transform(translate3d(0px, 0px, 0px));

}

.light-shine-1 {
    position: absolute;
    height: 36px;
    width: 277px;
	 @include background-image(linear-gradient(to right, #de6353, #fff, #de6353));
    z-index: 0;
    opacity: 0.5;
    left: -72px;
    top: -1px;
    @include transform(rotateY(0deg) skewY(10deg) translate3d(0px, 0px, 0px));
	@include animation-properties((animation: lighthouseLight, animation-duration: 3s, animation-iteration-count: infinite, animation-delay: 0s, animation-direction: forwards, animation-timing-function: linear));
}

// Birds
.birds {
	position: absolute;
	height: 60%;
	width: 100%;
	top: 0;
	left:0;
	z-index: 4;
	@for $i from 1 through (20) {
    $top: random(30);
    $left: random(100);
    $size: random(6)+0px;
	 $rotate: random(40) - 20+deg;
    .bird:nth-of-type(#{$i}) {
		position: relative;
      top: $top * 1%;
      left: $left * 1%;
		@include transform( rotate($rotate));
	}
	}
	.left-wing {
		position: absolute;
		width: 30px;
		height: 40px;
		@include border-radius(40%);
		@include box-shadow(inset 0px 10px #f7dbcf, inset 0px 0px 0px 0px #999);
		@include transform(scale(0.5));
	}

	.right-wing {
		position: absolute;
		width: 30px;
		height: 40px;
		left: 14px;
		@include border-radius(40%);
		@include box-shadow(inset 0px 10px #f7dbcf, inset 0px 0px 0px 0px #999);
		@include transform(scale(0.5));
	}

}



// Stars
.stars {
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: -1;
  & > * {
	position: absolute;
	background: rgba(241, 241, 241, 0.38);
	@include border-radius(50px);
	animation: twinkle 5s infinite;
	transition-timing-function: ease-in-out;
  }
  @for $i from 1 through (20) {
    $top: random(100);
    $left: random(100);
    $size: random(6)+0px;
    .star:nth-of-type(#{$i}) {
      position: relative;
		top: $top * 1%;
      left: $left * 1%;
      width: $size;
      height: $size;
      animation-delay: random(5) + s;
    }
  }
  @for $i from 21 through (40) {
    $top: random(100);
    $left: random(100);
    $size: random(6)+0px;
    .star:nth-of-type(#{$i}) {
      position: relative;
		top: $top * 1%;
      left: $left * 1%;
		width: $size;
      height: $size;
      animation-delay: random(5) + s;
    }
  }
}
@keyframes twinkle {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

// Twinkle Stars
.twinkle-stars {
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: -1;
  & > * {
	position: absolute;
	animation: twinkle-stars 5s infinite;
	transition-timing-function: ease;
  }
  @for $i from 1 through (20) {
    $top: random(400)+px;
    $left: random(1200)+px;
    $size: random(6)+0px;
    .twinkle-star:nth-of-type(#{$i}) {
      top: $top;
      left: $left;
      width: $size;
      height: $size;
      animation-delay: random(5) + s;
	}
	 
	.twinkle-up {
		position: relative;
      width: 1px;
      height: 15px;
		background: #fff;
	}
	  
	.twinkle-side {
		position: absolute;
      width: 17px;
      height: 1px;
		top: 6px;
		left: -8px;
		background: #fff;
		border-radius: 10px;
	}
  }
  @for $i from 21 through (40) {
    $top: random(400)+px;
    $right: random(1200)+px;
    $size: random(6)+0px;
    .star:nth-of-type(#{$i}) {
      top: $top;
      right: $right;
      width: $size;
      height: $size;
      animation-delay: random(5) + s;
    }
  }
}
@keyframes twinkle-stars {
  0% {
	  opacity: 0.6;
	 transform: scale(1.0);
  }
  50% {
	  opacity: 0.3;
	 transform: scale(1.3);
  }
  100% {
	  opacity: 0.6;
	 transform: scale(1.0);
  }
}


// Lighthouse Animations
@keyframes lighthouseLight {
	0% {
    	transform: rotateY(0deg) skewY(0deg);
		@include background-image(linear-gradient(to right, #de6353, #fcd395, #de6353));
		opacity: 0.5;
	}
	100% {
		transform: rotateY(180deg) skewY(0deg);
		@include background-image(linear-gradient(to right, #de6353, #fcd395, #de6353));
		opacity: 0.2;
	}
}
@keyframes lighthouseBG {
	0% {
		opacity: 0.2;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 0.2;
	}
}
@keyframes lighthouseBG-2 {
	0% {
		opacity: 0.4;
	}
	50% {
		opacity: 0.7;
	}
	100% {
		opacity: 0.4;
	}
}

              
            
!

JS

              
                // Prevent elements from colliding with one another

(function(){
	function collision($div1, $div2) {
		var x1 = $div1.offset().left;
		var y1 = $div1.offset().top;
		var h1 = $div1.outerHeight(true);
		var w1 = $div1.outerWidth(true);
		var b1 = y1 + h1;
		var r1 = x1 + w1;
		var x2 = $div2.offset().left;
		var y2 = $div2.offset().top;
		var h2 = $div2.outerHeight(true);
		var w2 = $div2.outerWidth(true);
		var b2 = y2 + h2;
		var r2 = x2 + w2;

		if (b1 < y2 || y1 > b2 || r1 < x2 || x1 > r2) return false;
			return true;
	}

	if(collision($('.boat-container'), $('.tree-container'))) {
		$('.tree-container').hide();
	}

	$('.cloud').each(function(){
		if(collision($('.sun-wave-container'), $(this))) {
		$(this).hide();
	}
		if(collision($(this), $(this))) {
			$(this).hide();
		}
	});
	
	$('.bird').each(function(){
		if(collision($('.sun-wave-container'), $(this))) {
		$(this).hide();
	}
	});
	
	$('.left-wing').each(function(){
		if(collision($('.sun'), $(this))) {
			$(this).css('-webkit-box-shadow', 'inset 0px 10px #a77c6e');
			$(this).css('-moz-box-shadow', 'inset 0px 10px #a77c6e');
			$(this).css('box-shadow', 'inset 0px 10px #a77c6e');
		}
	});
	
		$('.right-wing').each(function(){
		if(collision($('.sun'), $(this))) {
			$(this).css('-webkit-box-shadow', 'inset 0px 10px #a77c6e');
			$(this).css('-moz-box-shadow', 'inset 0px 10px #a77c6e');
			$(this).css('box-shadow', 'inset 0px 10px #a77c6e');
		}
	});
	
	
})()
              
            
!
999px

Console