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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <html>
<head>
<link rel="stylesheet" type="text/css" href="style-card-fan.css">
</head>

<body>
	<!--first-->
	<div class="center"> 
		<div class="rotate1">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--second-->
	<div class="center">
		<div class="rotate2">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--third-->
	<div class="center">
		<div class="rotate3">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--fourth-->   
	<div class="center">
		<div class="rotate4">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--fifth-->
	<div class="center">
		<div class="rotate5">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</object>
	</div>
	
	<!--sixth-->
	<div class="center">
		<div class="rotate6">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--seventh-->
	<div class="center">
		<div class="rotate7">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--eighth-->
	<div class="center">
		<div class="rotate8">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--ninth-->
	<div class="center">
		<div class="rotate9">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--tenth-->
	<div class="center">
		<div class="rotate10">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
	
	<!--eleventh-->
	<div class="center">
		<div class="rotate11">
		  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="289.618" height="700"  viewBox="-160 47 289.6 700"><style>.st0{fill:#F40B0B;stroke:#000000;stroke-width:5;stroke-miterlimit:10;}</style><path class="st0" d="M-160 47h289.6v700H-160z"/></svg>
		</div>
	</div>
</body>

</html>
              
            
!

CSS

              
                /*centers cards in canvas area using container div 
from where transform rotates happen on the svg object*/
.center {
	position: absolute;
	top: 50%;
	left: 50%;
	-moz-transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	-o-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

/*rotate1
rightmost card, no animation*/
.rotate1 
{
    transform-origin: 50% 130%;
    -moz-transform: rotate(50deg);
	-webkit-transform: rotate(50deg);
	-o-transform: rotate(50deg);
	-ms-transform: rotate(50deg);
	transform: rotate(50deg);
	
	z-index: -11;
}

/*rotate2
2nd card from right*/
.rotate2 
{
    -webkit-animation: rotate2 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate2 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -10;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate2 
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(40deg);
		-webkit-transform: rotate(40deg);
		-o-transform: rotate(40deg);
		-ms-transform: rotate(40deg);
		transform: rotate(40deg);
	}
}

/* Standard syntax */
@keyframes rotate2 
{
	from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(40deg);
		-webkit-transform: rotate(40deg);
		-o-transform: rotate(40deg);
		-ms-transform: rotate(40deg);
		transform: rotate(40deg);
	}
}

/*rotate3
3rd card from right*/
.rotate3 {
    -webkit-animation: rotate3 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate3 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -9;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate3 
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(30deg);
		-webkit-transform: rotate(30deg);
		-o-transform: rotate(30deg);
		-ms-transform: rotate(30deg);
		transform: rotate(30deg);
	}
}


/* Standard syntax */
@keyframes rotate3
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(30deg);
		-webkit-transform: rotate(30deg);
		-o-transform: rotate(30deg);
		-ms-transform: rotate(30deg);
		transform: rotate(30deg);
	}
}

/*rotate4
34th card from right*/
.rotate4 {
    -webkit-animation: rotate4 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate4 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -8;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate4
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(20deg);
		-webkit-transform: rotate(20deg);
		-o-transform: rotate(20deg);
		-ms-transform: rotate(20deg);
		transform: rotate(20deg);
	}
}


/* Standard syntax */
@keyframes rotate4
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(20deg);
		-webkit-transform: rotate(20deg);
		-o-transform: rotate(20deg);
		-ms-transform: rotate(20deg);
		transform: rotate(20deg);
	}
}

/*rotate5
5th card from right*/
.rotate5 {
    -webkit-animation: rotate5 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate5 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -7;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate5
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(10deg);
		-webkit-transform: rotate(10deg);
		-o-transform: rotate(10deg);
		-ms-transform: rotate(10deg);
		transform: rotate(10deg);
	}
}


/* Standard syntax */
@keyframes rotate5
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(10deg);
		-webkit-transform: rotate(10deg);
		-o-transform: rotate(10deg);
		-ms-transform: rotate(10deg);
		transform: rotate(10deg);
	}
}

/*rotate6
6th card from right*/
.rotate6 {
    -webkit-animation: rotate6 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate6 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -6;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate6
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(0deg);
		-webkit-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		transform: rotate(0deg);
	}
}


/* Standard syntax */
@keyframes rotate6
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(0deg);
		-webkit-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		transform: rotate(0deg);
	}
}

/*rotate7
7th card from right*/
.rotate7 {
    -webkit-animation: rotate7 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate7 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -5;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate7
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-10deg);
		-webkit-transform: rotate(-10deg);
		-o-transform: rotate(-10deg);
		-ms-transform: rotate(-10deg);
		transform: rotate(-10deg);
	}
}


/* Standard syntax */
@keyframes rotate7
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-10deg);
		-webkit-transform: rotate(-10deg);
		-o-transform: rotate(-10deg);
		-ms-transform: rotate(-10deg);
		transform: rotate(-10deg);
	}
}

/*rotate8
8th card from right*/
.rotate8 {
    -webkit-animation: rotate8 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate8 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -4;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate8
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-20deg);
		-webkit-transform: rotate(-20deg);
		-o-transform: rotate(-20deg);
		-ms-transform: rotate(-20deg);
		transform: rotate(-20deg);
	}
}


/* Standard syntax */
@keyframes rotate8
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-20deg);
		-webkit-transform: rotate(-20deg);
		-o-transform: rotate(-20deg);
		-ms-transform: rotate(-20deg);
		transform: rotate(-20deg);
	}
}

/*rotate9
9th card from right*/
.rotate9 {
    -webkit-animation: rotate9 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate9 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -3;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate9
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-30deg);
		-webkit-transform: rotate(-30deg);
		-o-transform: rotate(-30deg);
		-ms-transform: rotate(-30deg);
		transform: rotate(-30deg);
	}
}


/* Standard syntax */
@keyframes rotate9
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-30deg);
		-webkit-transform: rotate(-30deg);
		-o-transform: rotate(-30deg);
		-ms-transform: rotate(-30deg);
		transform: rotate(-30deg);
	}
}

/*rotate10
10th card from right*/
.rotate10 {
    -webkit-animation: rotate10 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate10 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -2;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate10
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-40deg);
		-webkit-transform: rotate(-40deg);
		-o-transform: rotate(-40deg);
		-ms-transform: rotate(-40deg);
		transform: rotate(-40deg);
	}
}


/* Standard syntax */
@keyframes rotate10
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-40deg);
		-webkit-transform: rotate(-40deg);
		-o-transform: rotate(-40deg);
		-ms-transform: rotate(-40deg);
		transform: rotate(-40deg);
	}
}

/*rotate11
9th card from right, leftmost card*/
.rotate11 {
    -webkit-animation: rotate11 1s ease-in-out;  /* Chrome, Safari, Opera */
    animation: rotate11 1s ease-in-out; 
	
	-webkit-animation-fill-mode: forwards; /* Chrome, Safari, Opera */
    animation-fill-mode: forwards;
	
	z-index: -1;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes rotate11
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-50deg);
		-webkit-transform: rotate(-50deg);
		-o-transform: rotate(-50deg);
		-ms-transform: rotate(-50deg);
		transform: rotate(-50deg);
	}
}


/* Standard syntax */
@keyframes rotate11
{
    from 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(50deg);
		-webkit-transform: rotate(50deg);
		-o-transform: rotate(50deg);
		-ms-transform: rotate(50deg);
		transform: rotate(50deg);
	} 
	to 
	{ 
		transform-origin: 50% 130%;
		-moz-transform: rotate(-50deg);
		-webkit-transform: rotate(-50deg);
		-o-transform: rotate(-50deg);
		-ms-transform: rotate(-50deg);
		transform: rotate(-50deg);
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console