An open API service indexing awesome lists of open source software.

https://github.com/zr00da/get-styled-clone

Get a 1:1 styled clone of an element
https://github.com/zr00da/get-styled-clone

clone dom element styled

Last synced: 6 months ago
JSON representation

Get a 1:1 styled clone of an element

Awesome Lists containing this project

README

          

# get-styled-clone
Get a 1:1 styled clone of an element

`getStyledClone( HTMLElement, { options } )`

`position` - set clone at element position (`false`)
`fixTransform` - if positioned, correct for applied transforms (`true`)
`removeClasses` - remove all classes from cloned element and its children (`true`)
`removeIds` - remove all IDs from cloned element and its children (`true`)