Back to Browse

Build a color palette with HTML, CSS and JavaScript

1.9K views
Nov 20, 2021
5:57

This video shows you how to create a simple color palette using HTML, CSS and JavaScript. ✨Contents: ✨ 00:15 - Adding the HTML 01:48 - Bringing in the TinyColor library 02:22 - Grabbing the elements with document.getElementById 02:51 - Adding an event listener on the input 03:08 - Writing the JavaScript function 03:41 - Using methods from TinyColor 🔗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

0 formats

No download links available.

Build a color palette with HTML, CSS and JavaScript | NatokHD