Shadow

December 31, 2018 ยท View on GitHub

Adds a configurable shadow to an element.

Main features

  • Set z-depth
  • Animate shadow change

Usage

Options

Shadow options

ParameterRequiredTypeDefaultDescription
animatedoptionalBooleanfalseSet to true to animate the shadow when setting a new shadow depth value.
shadowDepthoptionalNumber 0-51Depth of the shadow; value 0 results in no shadow

Common component options

ParameterRequiredTypeDefaultDescription
afteroptionalString, hyperscript or componentExtra content after main content; this content is placed right of preceding elements with a higher stacking depth
beforeoptionalString, hyperscript or componentExtra content before main content; this content is placed left of subsequent elements with a lower stacking depth
classNameoptionalStringExtra CSS class appended to pe-shadow
contentoptionalString, hyperscript or componentAny content; replaces children
elementoptionalString"div"HTML element tag
idoptionalStringHTML element id

CSS classes