cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              /// Slightly lighten a color
/// @access public
/// @param {Color} $color - color to tint
/// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color}
@function tint($color, $percentage) {
	@return mix(white, $color, $percentage);
}

/// Slightly darken a color
/// @access public
/// @param {Color} $color - color to shade
/// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color}
@function shade($color, $percentage) {
	@return mix(black, $color, $percentage);
}

*, *:before, *:after {
	box-sizing: border-box;
}

html {
	font-family: caveat brush, arial, sans-serif;
	font-size: 7px;
	background-color: #fec003;
	@media screen and (min-width: 640px) {
		font-size: 10px;
	}
}

body {
	&::after {
		content: 'Daily CSS Images #23 : Wolverine';
		position: absolute;
		top: 5rem;
		left: 0;
		right: 0;
		font-size: 2.8rem;
		text-align: center;
	}
}


$speed: 1.8s;
$timing: ease-in-out;

.claws {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 2;
	animation: moveClaws $speed infinite $timing;
	span {
		display: inline-block;
		height: 36rem;
		width: 4rem;
		background-color: white;
		border-top-left-radius: 100% 100%;
		background-image: linear-gradient(to right, lightgrey 0%, lightgrey 50%, white 50%, white 100%);
		margin: 0 .5rem;
		animation: blurClaws $speed infinite $timing;
		&:nth-child(1) {
			height: 76rem;
			width: 4rem;
		}
		&:nth-child(2) {
			height: 78rem;
			width: 4rem;
		}
		&:nth-child(3) {
			height: 80rem;
			width: 4rem;
		}
	}
}

@keyframes moveClaws {
	0%, 20% {		
		transform: rotate(-40deg);
	}
	30%, 35% {
		transform: translate3d(-6rem, -20rem, 0) rotate(-20deg);
	}
	80%, 90% {
		transform: rotate(-20deg);
	}
	100% {
		transform: rotate(-40deg);
	}
}

@keyframes blurClaws {
	0%, 35% {
		filter: none;
	}
	37% {transform: translateX(.1rem); filter: blur(4px); }
	39% {transform: translateX(-.2rem);}
	41% {transform: translateX(.2rem);}
	43% {transform: translateX(-.1rem);}
	45% {transform: translateX(.2rem);}
	47% {transform: translateX(-.2rem);}
	49% {transform: translateX(.1rem);}
	51% {transform: translateX(-.2rem);}
	53% {transform: translateX(.2rem);}
	55% {transform: translateX(-.1rem);}
	57% {transform: translateX(.2rem);}
	59% {transform: translateX(-.2rem);}
	61% {transform: translateX(.2rem);}
	63% {transform: translateX(-.1rem);}
	65% {transform: translateX(.2rem);}
	67% {transform: translateX(-.2rem);}
	69% {transform: translateX(.1rem);}
	71% {transform: translateX(-.2rem);}
	73% {transform: translateX(.2rem);}
	75% {transform: translateX(-.1rem);}
	77% {transform: translateX(.2rem);}
	79% {transform: translateX(-.2rem); filter: blur(0px);}
	80%, 100% {
		transform: none;
	}
}

.trails {
	position: fixed;
	z-index: 0;
	top: 50%;
	left: 50%;
	transform: translate3d(-12.5rem,-19.5rem,0) rotate(-20deg);
	&::before { 
		content: '';
		position: absolute;
		z-index: 3;
		top: 0;
		left: -.5rem;
		right: -.5rem;
		background-color: #fec003;
		height: 0;
		animation: fake2 $speed infinite $timing;
	}
	&::after { 
		content: '';
		position: absolute;
		bottom: 0;
		left: -.5rem;
		right: -.5rem;
		background-color: #fec003;
		height: 100%;
		animation: fake $speed infinite $timing;
	}
	span {
		display: inline-block;
		width: .2rem;
		height: 20rem;
		background-color: rgba(black, .3);
		margin: 0 2rem;
		vertical-align: top;
		animation: fade $speed infinite $timing;
		&:nth-child(1) {
			margin-top: 5.5rem;
			transform: translateX(-2rem);
		}
		&:nth-child(2) {
			margin-top: 3.8rem;
			transform: translateX(-1.2rem);
		}
	}
}

@keyframes fake {
	0%, 35% {		
		height: 100%;
	}
	80%, 100% {
		height: 0;
	}
}

@keyframes fake2 {
	0%, 40% {		
		height: 0;
	}
	100% {
		height: 100%;
	}
}

@keyframes fade {
	0%, 35% {		
		opacity: 1;
	}
	80%, 90% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console