linear-gradients

Bevel corners, background not rounded

纵然是瞬间 提交于 2021-02-04 21:08:47
问题 I have a figure with bevel corners, but the background is not rounded: How to have it rounded? .test-block { height: 480px; padding: 4px; color: #ffffff; background-color: transparent; background-image: -webkit-linear-gradient(top, #ffdc00, #ffdc00), -webkit-linear-gradient(225deg, #ffdc00, #ffdc00), -webkit-linear-gradient(bottom, #ffdc00, #ffdc00), -webkit-linear-gradient(left, #ffdc00, #ffdc00), -webkit-linear-gradient(315deg, transparent 9px, #ffdc00 10px, #ffdc00 12px, red 12px);

CSS3 Linear gradient function (darker line between image and gradient)

♀尐吖头ヾ 提交于 2021-01-29 10:45:17
问题 So I am trying to make a linear gradient from an image with a solid color, however, there's a darker line visable where the color and gradient cross: example: The CSS: .green-background { background: linear-gradient(to bottom, #3c7c3f, #ffffff); background: #3c7c3f; background: -webkit-linear-gradient(top, #3c7c3f, #ffffff); padding: 100px 0; } How to solve this? Thank you! 回答1: It's actually an optical illusion. If you check the HSL values pixel per pixel, you'll see that the color isn't

SVG - How to apply a gradient transform matrix to a linear gradient brush?

独自空忆成欢 提交于 2021-01-28 12:09:11
问题 I'm writing a SVG viewer application in c++ language. I actually face a transform issue in several SVG files that I cannot figure out. Considering the following SVG file: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg id="svg9686" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="90mm" width="145mm" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http:/

CSS: browser compatibility issues using 'background-clip: text' and linear-gradient

大兔子大兔子 提交于 2021-01-28 08:51:31
问题 I am attempting to create a faded text effect on scroll where the text at the top and bottom of the element are transparent but the text in the center remains fully opaque. There is also infinitely scrolling text over a video background. Because it is not easy to explain the effect, here is a demo of the effect working only on Chrome so far: Working demo: http://dboxcg.dev.dbox.com/portfolio It's working on chrome (v81.0.4) but breaking on firefox, safari and all mobile browsers. Here is the

Override linear gradient CSS attribute

倖福魔咒の 提交于 2021-01-28 06:24:56
问题 I have the following class definition: height: 99px; width: 961px; padding-top: 40px; font-size: 15px; color: rgb(255, 255, 255); background: no-repeat url(data:image/png;base64,h64GFj4fhffGFHJJ74fhf); However, the site's javascript (which I can't influence) is adding a linear-gradient property to the background: height: 99px; width: 961px; padding-top: 40px; font-size: 15px; color: rgb(255, 255, 255); background: linear-gradient(rgba(0, 153, 204, 0.701961) 0%, rgba(0, 153, 204, 0.701961) 100

CSS Text with Gradient and Gradient Outline

╄→гoц情女王★ 提交于 2021-01-27 17:29:30
问题 I can't seem to find anything or anyone that has done this. I'm trying to limit how many images we are using, and would like to create a text with a gradient as its "color" and have a gradient outline/stroke around it So far, I haven't see anything that has incorporated the two together. I've can get the text gradient done, by itself, and the text outline gradient by itself. Is there a way to combine to two as one? h1 { text-transform: uppercase; font-size: 50px; font-weight: 800; color: rgb

CSS Square background - image

孤街浪徒 提交于 2021-01-13 09:38:28
问题 I tried to make some square background using CSS only, but i got just line background without the option of horizontal lines. This is my example code: .container{ background-color:red; width: 400px; height:200px; margin:0 auto; background-image: linear-gradient(90deg, rgba(255, 255, 255, .5) 95px , transparent 50%), linear-gradient(rgba(255, 255, 255, 0) 5px, transparent 100%); background-size: 100px 100%; } <div class="container"> </div> And this is the result that I am looking for This is

Triangle after header that matches header background gradient

你离开我真会死。 提交于 2021-01-04 12:45:05
问题 I have to make a header like this: I have no problem in making the header with this gradient. I also know how to position a triangle with ::after . However, how can I make the triangle color to match header background? The problem is that the gradient is not static. For example, if I open the page in a smartphone, as the screen is shorter, the gradient will be more "compact" than if I open in a monitor. So the arrow color can't be static. I have no idea how I could do this, can someone help

Triangle after header that matches header background gradient

时光毁灭记忆、已成空白 提交于 2021-01-04 12:40:31
问题 I have to make a header like this: I have no problem in making the header with this gradient. I also know how to position a triangle with ::after . However, how can I make the triangle color to match header background? The problem is that the gradient is not static. For example, if I open the page in a smartphone, as the screen is shorter, the gradient will be more "compact" than if I open in a monitor. So the arrow color can't be static. I have no idea how I could do this, can someone help

How to do a Gradient effect from topLeft to botttomRgiht in Flutter Shader?

℡╲_俬逩灬. 提交于 2021-01-03 08:21:45
问题 Hy everyone, I need to know, how do I can create so a Gradient colors from topLeft to bottomRight withhin a shader in flutter like in example 2 in this image? I tried with this mini shader code to do this, but it still doesn't working for me. final Shader linearGradient = LinearGradient( colors: <Color>[ Color(0xff002fff), Color(0xff00f4ff), ], ).createShader(Rect.fromCircle(center: Offset(200, 0), radius: 150)); Could anybody have a ideea, how can this be created? Or it's not impossible