css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <!-- DAILY CSS IMAGES 2 - ELEPHANT -->

<div class="canvas">
	
	<!-- HEAD -->
	<div class="head">
	<div class="head-copy"></div>

		<!-- EARS -->
		<div class="ear-left">
			<div class="inner-left"></div>
		</div>
		<div class="ear-right">
			<div class="inner-right"></div>
		</div>
		<div class="eye-left">
			<div class="eyeball"></div>
		</div>
		<div class="eye-right">
			<div class="eyeball"></div>
		</div>
		
		<!-- CHEEKS -->
		<div class="cheek-left"></div>
		<div class="cheek-right"></div>
		
		<!-- TRUNK -->
		<div class="nose">
			<div class="nose-outline"></div>
			<div class="wrinkle-top"></div>
			<div class="wrinkle-bottom"></div>
			<div class="nose-left"></div>
			<div class="nose-right"></div>
			<div class="tooth-left"></div>
			<div class="tooth-right"></div>
		</div>
	</div>
	
	<!-- BODY -->
	<div class="body">
		
		<!-- LEGS -->
		<div class="leg-left">
			<div class="toe-1"></div>
			<div class="toe-2"></div>
			<div class="toe-3"></div>
		</div>
		<div class="leg-right">
			<div class="toe-1"></div>
			<div class="toe-2"></div>
			<div class="toe-3"></div>
		</div>
	</div>
</div>
            
          
!
            
              $bg: #A8D0DB
$grey: #9397A1
$pink: #EFAAC4
$darkgrey: #858A95
$beige: #EAE5D5
$black: #494C52

*
	box-sizing: border-box

body, html
	width: 100%
	height: 100%
	background: $bg

.canvas
	position: relative
	top: 10%
	margin: auto
	background: $bg
	height: 300px
	width: 350px

// HEAD
.head
	position: relative
	top: 15%
	margin: auto
	height: 47.5%
	width: 45%
	background: $grey
	border-radius: 70% 70% 80% 80%
	z-index: 1

.head-copy
	position: absolute
	height: 100%
	width: 100%
	background: $grey
	border-radius: 70% 70% 80% 80%
	z-index: 2
	border-bottom: 5px solid $darkgrey

// EARS
.ear-left
	position: absolute
	top: -15%
	left: -55%
	height: 140%
	width: 100%
	background: $grey
	border-radius: 50%
	z-index: 1
	border-bottom: 1px solid $darkgrey
	
	.inner-left
		position: absolute
		top: 5%
		left: 3%
		height: 90%
		width: 90%
		background: $darkgrey
		z-index: 2
		border-radius: 50%

.ear-right
	position: absolute
	top: -15%
	right: -55%
	height: 140%
	width: 100%
	background: $grey
	border-radius: 50%
	z-index: 1
	border-bottom: 1px solid $darkgrey
	
	.inner-right
		position: absolute
		top: 5%
		right: 3%
		height: 90%
		width: 90%
		background: $darkgrey
		z-index: 2
		border-radius: 50%
	
// EYES
.eye-left
	position: absolute
	top: 40%
	left: 30%
	height: 10.5%
	width: 10%
	z-index: 2
	background: $black
	border-radius: 50%

.eye-right
	position: absolute
	top: 40%
	right: 30%
	height: 10.5%
	width: 10%
	z-index: 2
	background: $black
	border-radius: 50%

.eyeball
	position: absolute
	top: 15%
	left: 20%
	height: 20%
	width: 20%
	background: #fff
	border-radius: 50%

// PINK CHEEKS
.cheek-left
	position: absolute
	top: 60%
	left: 18%
	background: $pink
	height: 9%
	width: 8%
	border-radius: 50%
	z-index: 2
	
.cheek-right
	position: absolute
	top: 60%
	right: 18%
	background: $pink
	height: 9%
	width: 8%
	border-radius: 50%
	z-index: 2

// TRUNK	
.nose
	position: absolute
	top: 60%
	left: 35%
	height: 79%
	width: 30%
	background: $grey
	z-index: 2
	border-radius: 20% 20% 40% 40%

	.nose-outline
		position: absolute
		bottom: 0
		background: $grey
		height: 90%
		width: 100%
		border-right: 2px solid #858A95
		border-left: 2px solid #858A95
		z-index: 2
		border-radius: 10% 10% 100% 100%

.nose-left
	position: absolute
	bottom: -5%
	left: 0
	height: 15%
	width: 50%
	background: $grey
	border-radius: 50%
	z-index: 3
	border-left: 2px solid $darkgrey
	border-bottom: 2px solid $darkgrey

.nose-right
	position: absolute
	bottom: -5%
	right: 0
	height: 15%
	width: 50%
	background: $grey
	border-radius: 50%
	z-index: 3
	border-right: 2px solid $darkgrey
	border-bottom: 2px solid $darkgrey
	
// TRUNK WRINKLES
.wrinkle-top
	position: absolute
	top: 4%
	left: 16%
	height: 1.5%
	width: 70%
	background: $darkgrey
	border-radius: 50%

.wrinkle-bottom
	position: absolute
	top: 8%
	left: 16%
	height: 1.5%
	width: 70%
	background: $darkgrey
	border-radius: 50%

// TEETH
.tooth-left
	position: absolute
	top: 25%
	left: -25%
	height: 25%
	width: 30%
	background: $beige
	border-radius: 150% 10% 100% 100% 
	z-index: 1

.tooth-right
	position: absolute
	top: 25%
	right: -25%
	height: 25%
	width: 30%
	background: $beige
	border-radius: 10% 150% 100% 100%
	z-index: 1

// BODY
.body
	position: relative
	margin: auto
	height: 53%
	width: 55%
	background: $grey
	border-radius: 100% 100% 80% 80%

.leg-left
	position: absolute
	bottom: -10%
	left: 15%
	height: 32%
	width: 28.5%
	background: $grey
	border-radius: 10% 10% 0 0 
	z-index: 3

.leg-right
	position: absolute
	bottom: -10%
	right: 15%
	height: 32%
	width: 28.5%
	background: $grey
	border-radius: 10% 10% 0 0 
	z-index: 3
	
.toe-1
	position: absolute
	left: 0
	bottom: 0
	width: 33.3%
	height: 15%
	background: $beige
	border-radius: 50% 50% 0 0

.toe-2
	position: absolute
	bottom: 0
	left: 33%
	width: 34%
	height: 17%
	background: $beige
	border-radius: 50% 50% 0 0

.toe-3
	position: absolute
	bottom: 0
	right: 0
	width: 33.3%
	height: 15%
	background: $beige
	border-radius: 50% 50% 0 0
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console