Angle Linear

Linear angle

linear-gradient() - CSS: cascading stylesheets Using the linear-gradient() function, you can generate an images that consists of a gradual change between two or more colours along a line. A linear gravitational unit has no inherent dimension, i.e. it has no physical or preferential dimension or relationship. In order to generate a linear slope that is repeated to fill its tank, use the repeating-linear-gradient() instead.

Therefore, linear-gradient() does not work with backgrounds and other attributes that use the datatype. Linear gradients are determined by an axle - the line of gradients - and two or more dots. Every point on the axe is a specific colour; to produce a straight line, the linear-gradient() command paints a row of coloured vertical line gradients, each corresponding to the colour of the point at which it crosses the line.

You define the line of the slope by the middle of the frame with the slope picture and by an angle. Two or more points determine the colours of the gradient: the start point, the end point and optionally the colour stop points in between. It starts at the position on the vignette where the first colour begins.

This is the point where the last colour ends. Either of these two points is delimited by the point of intersection of the line of the gradient with a vertical line coming from the edge of the rectangle in the same square. This somewhat complicated definition leads to an interesting effect, sometimes referred to as magical corners: the closest edges to the start and end points have the same colour as their start and end points.

With the addition of more stop points on the Graduate line, you can make a very individual change between the initial and final colour. You can define the exact length of a stop by or . Failure to specify the start point will place it half way between the one that goes ahead and the one that follows. ; ; ; ; The start point coordinate of the line.

Up, down, right and left correspond to the angle positions Odeg, 180deg, 270deg and 90°. Then the other readings are converted to an angle. Angle> The angle of the line of the gradient. One value of odeg corresponds to top; rising numbers turn counterclockwise from there.

The value of a stop of colour , followed by an option stop location (either a or a along the axes of the gradient). Hint: Colour stop renders in gradients of css are done according to the same rule as colour stop renders in SVG-sizes. 1 ] Gecko, Opera & Webkit consider to launch right instead of up.

I. e. an angle of 0 was regarded as a right hand arrow. It differs from the latest specifications where an angle of 0 points upwards as a pointing arrow. From Firefox 42, the previous gradient can be deactivated by changing layout.css.prefixes.gradients to False.

Before Gecko 36. 0 (Firefox 36. 0 / Thunderbird 36. 0 / SeaMonkey 2. 33), Gecko did not applied transitions to the pre-multiplied gamut, resulting in gray tones that were unexpected when used with transparent. 3 ] WebKit since 528 support the inheritance -webkit-gradient(linear,....) feature. From WebKit 534. 16, it also support the default gradient systax.

In contrast to Gecko, you cannot specify both a location and an angle in -webkit-linear-gradient() in WebKit inheritance. The same effect can be achieved by moving the colour stop. Command 0 support the propriate filter: progid:dximagetransform.microsoft. gradient() flag. Firefox 3. 6 and Opera 11. An early parenthesis was used to prefix an early parenthesis where the beginning edge or page was specified without the t o tag and actually regarded as a "from" notation.

Added to syntax in Firefox 10 and Opera 11.60. Additionally to the unfixed Gecko 44 unfixed state. Added 0 (Firefox 44. 0 / Thunderbird 44. 0 / SeaMonkey 2. 41) Added functionality for a -Swebkit preferred release of the feature that uses the old'from' syntax behind the layout.css.prefixes. webkit default to false for web compatability now.

Gecko 49. 0 (Firefox 49. 0 / Thunderbird 49. 0 / SeaMonkey 2. 46) has set the default to True. 6 ] Opera & Webkit consider to launch to the right instead of up. I. e. an angle of 0 was regarded as a right hand arrow.

It differs from the latest specifications where an angle of 0 points upwards as a pointing arrow. From Firefox 42, the previous versions of grades can be deactivated by changing layout.css.prefixes.gradients to false. The WebKit since 528 support the WebKit linear inheritance feature. From WebKit 534. 16, it also support the default gradient systax.

In contrast to Gecko, you cannot specify both a location and an angle in -webkit-linear-gradient() in legacy webkit. The same effect can be achieved by moving the colour stop. To adjust the webkit/flashing behaviour, 0 is uniformly acceptable for angle, in alpha-swebkit linear grade functions since Gecko 46. 0 (Firefox 46. 0 / Thunderbird 46. 0 / SeaMonkey 2. 43) (see bug 1239153), and in linear grade functions since Gecko 55. 0 (Firefox 55. 0 / Thunderbird 55. 0 / SeaMonkey 2. 52) (see bug 1363292).

Mehr zum Thema