steevehook
8/22/2018 - 1:50 PM

CSS register property

CSS register property

// Define custom css property (variable) in order to make it animatable when redefining it
// inside @keyframes animation

CSS.registerProperty({
  name: '--color',
  syntax: '<color>'
  initialValue: 'black',
  inherits: false
});