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

  1. $elm”document.body”HTMLElement

    The element from which to get data

Example

import { readCssDataFrom } from '@blackbyte/sugar/dom';
const data = readCssDataFrom();