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
- Host: GitHub
- URL: https://github.com/zr00da/get-styled-clone
- Owner: zr00da
- License: mit
- Created: 2017-05-02T17:33:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T13:45:16.000Z (over 7 years ago)
- Last Synced: 2025-02-18T09:21:29.290Z (about 1 year ago)
- Topics: clone, dom, element, styled
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`)