js get css style of element code example
Example: access css property using javascript
const element = document.querySelector('.element')
const style = getComputedStyle(element)
const element = document.querySelector('.element')
const style = getComputedStyle(element)