shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
readCssDataFrom
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.css
This function allows you to read some JSON data from the “:before|:after” pseudo class in the “content” property.
Params
- $elm”document.body”HTMLElement
The element from which to get data
Example
import { readCssDataFrom } from '@blackbyte/sugar/dom';
const data = readCssDataFrom();Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space