linear-gradients

CSS linear-gradient and Canvas linear-gradient aren't the same with opacity settings

我与影子孤独终老i 提交于 2021-01-02 20:51:34
问题 I want to achieve the same linear gradient look defined by CSS on a canvas. Used a method that works great until no transparency setting is used. When there are rgba color values defined with the same linear gradient color settings the results doesn't look the same, please see the following link: JSFiddle: Example var canvas = document.getElementById("myCanvas"); var ctx = document.getElementById("myCanvas").getContext("2d"); var w = canvas.width; var h = canvas.height; var cssAng = Math.PI;

CSS gradient border not showing correctly

荒凉一梦 提交于 2020-11-29 08:31:10
问题 I want to set half blue and orange for border-color of text input. I tried using a gradient but it doesn't work. what is my code problem? .search { width: 550px; height: 50px; margin-left: 350px; border-radius: 20px; outline: none; margin-top: 70px; border: solid; border-image: linear-gradient(to right, rgb(254, 113, 53) 50%, rgb(55, 154, 214) 50%); font-size: 20px; text-align: center; transition: all 0.2s linear; } .search:hover, .search:focus { border: #4cbea5 solid; } <div> <form method=

CSS gradient border not showing correctly

左心房为你撑大大i 提交于 2020-11-29 08:31:08
问题 I want to set half blue and orange for border-color of text input. I tried using a gradient but it doesn't work. what is my code problem? .search { width: 550px; height: 50px; margin-left: 350px; border-radius: 20px; outline: none; margin-top: 70px; border: solid; border-image: linear-gradient(to right, rgb(254, 113, 53) 50%, rgb(55, 154, 214) 50%); font-size: 20px; text-align: center; transition: all 0.2s linear; } .search:hover, .search:focus { border: #4cbea5 solid; } <div> <form method=

Gradient colour with Linear Gradient Border in text using css not working

大憨熊 提交于 2020-11-28 08:32:42
问题 I would like design £1 similar to the following image using CSS. I would like to have some text with gradient colour, gradient border and text-shadow in this design. I tried the following code, but it doesn't work. CSS: .pound-lbl { background-image: linear-gradient(275deg, #f8e71c 0%, #f8bd1c 100%); -webkit-background-clip: text; color: #FFDE17; text-shadow: 0 2px 4px rgba(0,0,0,0.50); background: -webkit-linear-gradient(275deg,#F8CC1C 0%, #FFFFFF 100%); -webkit-background-clip: text;

How to create Rectangle With Gradient Color Stripes Border via CSS?

人走茶凉 提交于 2020-11-28 08:07:07
问题 I want to create Round Edges Rectangle With Gradient Color Stripes Border . I want to use the img tag or div tag to include the image and the Gradient Striped Border. This is how it needs to look like: I try to search around and i found that (SCSS) example: https://jsfiddle.net/rami7250/yujsz7wf/ and i got this SCSS code: .module { background: white; border: 1px solid #ccc; margin: 3%; > h2 { padding: 1rem; margin: 0 0 0.5rem 0; } > p { padding: 0 1rem; } /*animation: widen 10s linear

How to create Rectangle With Gradient Color Stripes Border via CSS?

若如初见. 提交于 2020-11-28 08:05:58
问题 I want to create Round Edges Rectangle With Gradient Color Stripes Border . I want to use the img tag or div tag to include the image and the Gradient Striped Border. This is how it needs to look like: I try to search around and i found that (SCSS) example: https://jsfiddle.net/rami7250/yujsz7wf/ and i got this SCSS code: .module { background: white; border: 1px solid #ccc; margin: 3%; > h2 { padding: 1rem; margin: 0 0 0.5rem 0; } > p { padding: 0 1rem; } /*animation: widen 10s linear