Back to Browse

Convert hex to rgb in Javascript with TinyColor

1.0K views
Oct 22, 2021
5:01

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

Download

1 formats

Video Formats

360pmp47.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Convert hex to rgb in Javascript with TinyColor | NatokHD