页卷曲效果
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了页卷曲效果相关的知识,希望对你有一定的参考价值。
@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); } }
以上是关于页卷曲效果的主要内容,如果未能解决你的问题,请参考以下文章