Found 29 bookmarks
Custom sorting
Workarounds for buggy gradients
Workarounds for buggy gradients
CSS has a great new feature where you can specify the color space to use by adding in to the gradient (not yet supported in Firefox). This is especially useful
·keithjgrant.com·
Workarounds for buggy gradients
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
A classic problem in CSS is maintaining the aspect ratio of images across related components, such as cards. The newly supported `aspect-ratio` property in combination with `object-fit` provides a remedy to this headache of the past! Let’s learn to use these properties, in addition to creating a responsive gradient image effect for extra flair.
·smashingmagazine.com·
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
Gradient angles in CSS, Figma & Sketch
Gradient angles in CSS, Figma & Sketch
Do you know the feeling when a subject never lets you go? In the last years, I have worked with different graphics programs and have written many lines of CSS. Even though it is now easy to copy CSS code for gradients directly from e.g. Figma, I always had the feeling that gradients in graphics programs behave somewhat differently than gradients created with CSS. Especially the angle of a gradient sometimes seemed more like a random product to me. In the end, copying the CSS code often leads to
·9elements.com·
Gradient angles in CSS, Figma & Sketch
Using CSS gradients
Using CSS gradients
CSS gradients are represented by the gradient data type, a special type of image made of a progressive transition between two or more colors. You can choose between three types of gradients: linear (created with the linear-gradient() function), radial (created with radial-gradient()), and conic (created with the conic-gradient() function). You can also create repeating gradients with the repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() functions.
·wiki.developer.mozilla.org·
Using CSS gradients
Shapy
Shapy
A gradient generator that lets you explore the power of CSS gradients. Create shapes and CSS images using background gradients only.
·shapy.app·
Shapy
1 HTML Element + 5 CSS Properties = Magic! | CSS-Tricks
1 HTML Element + 5 CSS Properties = Magic! | CSS-Tricks
Let's say I told you we can get the results below with just one HTML element and five CSS properties for each. No SVG, no images (save for the background on the root that's there just to make clear that our one HTML element has some transparent parts), no JavaScript. What would you think that involves? The desired
·css-tricks.com·
1 HTML Element + 5 CSS Properties = Magic! | CSS-Tricks
How to Use CSS Gradients on the Web
How to Use CSS Gradients on the Web
In this tutorial you’ll learn about using gradients on the web. I’ll give you some examples, some exercises (such as how to create gradients for borders), and I’ll also throw in some useful...
·webdesign.tutsplus.com·
How to Use CSS Gradients on the Web