Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.06 KB

el-mirror.md

File metadata and controls

25 lines (17 loc) · 1.06 KB

Mirror Element

Create synchronized replicas of a DOM node

Param Value Description
component-name "mirror-element" CONSTANT
target-id string ID of the element that should be mirrored
reflection-cls string Class attribute to be passed to all descendant elements refelected
reflection-styles string Style attribute to be passed to all descendant elements reflected

Example

<script src="https://cdn.jsdelivr.net/gh/iamogbz/oh-my-wcs@main/components/el-mirror.js"></script>

<div id="real-element">...</>
<mirror-element target-id="real-element"></mirror-element>

Live demo

Reference