In this video, I show you how to make a quick and easy app which converts hex colors to rgb using the TinyColor library.
✨Contents: ✨
00:26 - Setting up the HTML.
01:28 - Bringing in the TinyColor library
02:15 - Grabbing elements from the DOM
02:37 - Adding an event listener
03:03 - Writing the color conversion function
🔗 Links:
TinyColor library: https://www.npmjs.com/package/tinycolor2
TinyColor CDN: https://cdnjs.com/libraries/tinycolor
--
const me = {
name: "Leanne 👩🏻",
passions: ["coffee☕️", "code 💻", "cats 🐱"],
unpopular_opinion: "LOVES CSS ❤️",
favorite_colors: ["hotpink", "orangered"],
channel_aim: "Show the world that CSS is fun and web development rules! 👑"
}
--
🐤 Say hi on Twitter: https://twitter.com/RybaLeanne
🤺 Join the Scrimba Weekly Web Dev Challenge: https://scrimba.com/learn/weeklychallenge