Answers for "does hex rgba work in react inline styling"

0

does hex rgba work in react inline styling

const blueColor = '#2c8da9';
const oBlueColor = blueColor+'33'; // 0.2 opacity added

document.getElementById('one').style.backgroundColor = blueColor;
document.getElementById('two').style.backgroundColor = oBlueColor;
Posted by: Guest on December-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language