Skip to content

mixin :: perspective

SMRSAN edited this page Jun 2, 2017 · 1 revision

perspective Mixin

To make a cross-browser perspective, use this mixin.

How to use box-sizing

Parameters

Param Usage
$val The value of perspective properties.

Code

For example:

SASS
#myDiv
  +perspective(1000px)
SCSS
#myDiv{
  @include perspective(1000px);
}
CSS output
#myDiv{
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  perspective: 1000px;
}