filmov
tv
Create a gradient generator with Javascript & CSS

Показать описание
In this video, I show you how to make a gradient generator with Javascript & CSS.
✨ Contents: ✨
00:34 - The HTML, with inputs with the type of ‘color’.
02:01 - Adding event listeners to the color picker inputs.
02:20 - Writing the generate() function, saving the selected colors as variables.
03:02 - Building the gradient, adding it to the form and button.
03:56 - Displaying the gradient code using textContent.
04:24 - Wiring up the Surprise Me button to generate a random gradient on the click.
04:31 - Bringing in the RandomColor script.
05:19 - Using RandomColor to generate random colors, adding them to the picker values.
06:10 - Setting the hue with RandomColor.
06:31 - Setting the luminosity with RandomColor.
07:37 - Changing the text color to provide appropriate contrast, depending on the colors generated by RandomColor.
08:27 - Generating a random gradient on page load.
08:47 - Limitations.
--
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! 👑"
}
--
✨ Contents: ✨
00:34 - The HTML, with inputs with the type of ‘color’.
02:01 - Adding event listeners to the color picker inputs.
02:20 - Writing the generate() function, saving the selected colors as variables.
03:02 - Building the gradient, adding it to the form and button.
03:56 - Displaying the gradient code using textContent.
04:24 - Wiring up the Surprise Me button to generate a random gradient on the click.
04:31 - Bringing in the RandomColor script.
05:19 - Using RandomColor to generate random colors, adding them to the picker values.
06:10 - Setting the hue with RandomColor.
06:31 - Setting the luminosity with RandomColor.
07:37 - Changing the text color to provide appropriate contrast, depending on the colors generated by RandomColor.
08:27 - Generating a random gradient on page load.
08:47 - Limitations.
--
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! 👑"
}
--
Create a gradient generator with Javascript & CSS
3 Free Gradient Generators for Stunning Designs
Learn to Create a Random Linear Gradient Generator with HTML, CSS, and JS | Beginner Tutorial
🔥 Create a Gradient Generator with HTML, CSS & JS – No Libraries!
Random Gradient Generator using JavaScript | Create Your Own Gradient Generator 😊
The Ultimate CSS3 Gradient Generator Tutorial
Gradient Generator App w Javascript | Build A Simple JS Application
Build A Gradient Color Generator in HTML CSS & JavaScript | Gradient Generator in JavaScript
Ultimate CSS Gradient Generator Tutorial
Build A Gradient Color Generator in HTML CSS & JavaScript | Gradient Generator in JavaScript
Online CSS Gradient - Generator, Maker, and Background
How to Create a CSS Gradient Generator for Beginners - HTML, CSS & JavaScript
Creating an HTML, CSS, and JavaScript Gradient Generator | #HuXnWebDev
Learn React by Building a Gradient Generator App
Linear-gradient generator HTML CSS
how to make linear gradient generator tool using javascript
Gradient Generator | HTML, CSS, Javascript Project
CSS Gradient Generator Free Tool - Build a multi-layer CSS gradient easily with this generator
Build a Linear Gradient Generator with HTML CSS JavaScript | #coding #csstricks #webdesign #htmlcss
Grainy SVG Gradient Generator | Free SVG Generators For Creators
Random Gradient Color Generator using Javascript
Live-code a JavaScript gradient generator with us | HTML | CSS | JavaScript
Create Gradient Color Generator Using HTML | CSS | JS
[ Arabic ] Vue.js Tutorials - Create Gradient Generator
Комментарии