Return to Snippet

Revision: 47271
at June 4, 2011 01:25 by ddubyah17


Initial Code
@mixin page-curl($shadow-color:rgba(0,0,0,0.3), $skew:15deg, $rotate:5deg, $hoff:8px, $voff:12px, $blur:10px){
	position: relative;                            
	 @include box-shadow($shadow-color, 0px, 0px,3px);

	&:after {
		z-index: -1;
		position: absolute;
		background: transparent;
		width: 70%;
		height: 55%;
		content: '';
		right: 10px;
		bottom: 10px; 
		@include box-shadow($shadow-color, $hoff, $voff, $blur);  
		@include transform(1, $rotate, 0, 0, $skew);
	}        
	
	&:before {
		z-index: -2;
		position: absolute;
		background: transparent;
		width: 70%;
		height: 55%;
		content: '';
		left: 10px;
		bottom: 10px;  
		@include box-shadow($shadow-color, -$hoff, $voff, $blur);  
		@include transform(1, -$rotate, 0, 0, -$skew);
	} 
} 

Initial URL


Initial Description


Initial Title
SASS Page-curl effect

Initial Tags
css, web, design, CSS3

Initial Language
CSS