Get a CSS Custom Property value with JavaScript

April 15, 2019

Nowdays JavaScript is evolving fast and most probably going to set a new breakthrough in CSS development. CSS and design landscape is evolving too.

The need of new and different has pushed customization to a completely different level becoming the new marketing strategy.
The modern standards mixed width preprocessors and libraies let us achieve today intelligent CSS layouts.

Here is an excelent creativity exercise where CSS custom properties (sometimes referred to as CSS variables or cascading variables) are used to tell if a particular CSS attribute is supported by using JavaScript.

Setting a custom property, the browser will instruct JavaScript execution through CSS ability to check for browser support.

Read more

Let’s talk!