
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS3 Gradient Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/css3-gradient/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/css3-gradient/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sun, 17 Apr 2016 16:30:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>CSS3 Gradient Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/css3-gradient/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Understanding CSS3 Radial Gradient &#8211; Part 2</title>
		<link>https://www.technig.com/understanding-css3-radial-gradient/</link>
					<comments>https://www.technig.com/understanding-css3-radial-gradient/#respond</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Sun, 17 Apr 2016 16:30:33 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSS3 Gradient]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=6917</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"></div>
<p>In the previous article CSS3 Gradient technique about CSS3 gradient, we learned the basic of gradient techniques in css. In this article we will continue and learn more about CSS3 gradient and specially, CSS3 radial gradient. If you have came directly to this part of the tutorial, we recommend you to take a look at the first [&#8230;]</p>
<p>The post <a href="https://www.technig.com/understanding-css3-radial-gradient/">Understanding CSS3 Radial Gradient &#8211; Part 2</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"></div><p>In the previous article <a href="https://www.technig.com/css3-gradient-technique-linear-radial/" target="_blank" rel="noopener noreferrer">CSS3 Gradient technique</a> about CSS3 gradient, we learned the basic of gradient techniques in css. In this article we will continue and learn more about CSS3 gradient and specially, CSS3 radial gradient. If you have came directly to this part of the tutorial, we recommend you to take a look at the first part of the article, than refer to this part.</p>
<h2>Multi Color Gradient</h2>
<p>let&#8217;s continue with multi color gradient. It&#8217;s pretty simple, after second and third argument for linear-gradient function, add as many color as you want. Here an example</p>
<p>[codepen_embed height=&#8221;266&#8243; theme_id=&#8221;0&#8243; slug_hash=&#8221;jqxBYv&#8221; default_tab=&#8221;result&#8221; user=&#8221;Hujjat&#8221;]See the Pen &lt;a href=&#8217;http://codepen.io/Hujjat/pen/jqxBYv/&#8217;&gt;practicing multi color gradient&lt;/a&gt; by Hujjat Nazari (&lt;a href=&#8217;http://codepen.io/Hujjat&#8217;&gt;@Hujjat&lt;/a&gt;) on &lt;a href=&#8217;http://codepen.io&#8217;&gt;CodePen&lt;/a&gt;.[/codepen_embed]</p>
<p>If you use rgba color, you can specify the opacity as well. for instance</p>
<pre class="theme:sublime-text lang:css decode:true ">background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));</pre>
<p>Yep, it was all about the basic of linear gradient. now let&#8217;s learn radial gradient.</p>
<figure id="attachment_6960" aria-describedby="caption-attachment-6960" style="width: 800px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2016/04/css3-radial-gradient-1.jpg"><img fetchpriority="high" decoding="async" class="size-full wp-image-6960" src="https://www.technig.com/wp-content/uploads/2016/04/css3-radial-gradient-1.jpg" alt="CSS3 Radial Gradient" width="800" height="231" /></a><figcaption id="caption-attachment-6960" class="wp-caption-text">CSS3 Radial Gradient</figcaption></figure>
<h2>How to Use CSS3 Radial Gradient?</h2>
<p>CSS3 radial gradient is like a circle. It start from the center and ends to borders. You can think of center as 0% point, and the border as 100% point.</p>
<figure id="attachment_6962" aria-describedby="caption-attachment-6962" style="width: 567px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2016/04/css3-radial-gradient.png"><img decoding="async" class="wp-image-6962" src="https://www.technig.com/wp-content/uploads/2016/04/css3-radial-gradient.png" alt="radial gradient example" width="567" height="390" /></a><figcaption id="caption-attachment-6962" class="wp-caption-text">radial gradient example</figcaption></figure>
<p>css3 radial gradient</p>
<p>The first parameter for the radial-gradient function is the shape. the default is <em>ellipse,</em> you can write circle instead. Here is the basic example.</p>
<pre class="theme:sublime-text lang:css decode:true">.gradient {
  background-image:
    radial-gradient(
      circle,
      red,
      blue
    );
}</pre>
<p>As like linear-gradient, you can add more arguments and more colors.</p>
<p>[codepen_embed height=&#8221;266&#8243; theme_id=&#8221;0&#8243; slug_hash=&#8221;pyVeQG&#8221; default_tab=&#8221;result&#8221; user=&#8221;Hujjat&#8221;]See the Pen &lt;a href=&#8217;http://codepen.io/Hujjat/pen/pyVeQG/&#8217;&gt;practicing radial gradient&lt;/a&gt; by Hujjat Nazari (&lt;a href=&#8217;http://codepen.io/Hujjat&#8217;&gt;@Hujjat&lt;/a&gt;) on &lt;a href=&#8217;http://codepen.io&#8217;&gt;CodePen&lt;/a&gt;.[/codepen_embed]</p>
<p>&nbsp;</p>
<h3>Specify the Size</h3>
<p>In the above example, the circle of the gradient is out the 300px box. You can give the size value to make it fit on the container. We have different size values. Here are the list.</p>
<ul>
<li><strong>closest-side</strong></li>
<li><strong>farthest-side</strong></li>
<li><strong>closest-corner</strong></li>
<li><strong>farthest-corner</strong></li>
</ul>
<p>You can write them list this</p>
<pre class="theme:sublime-text lang:css decode:true ">  background: radial-gradient(circle closest-side, red, blue, green); 
</pre>
<p>Lastly, if you want  to use CSS3 gradient in production projects, make sure you write the prefixes. Here an example for all major browser support.</p>
<pre class="theme:sublime-text lang:css decode:true ">.technig-gradient {
  background: red; /* For browsers that do not support gradients */
  background: -webkit-radial-gradient(circle, red, yellow, green); /* Safari */
  background: -o-radial-gradient(circle, red, yellow, green); /* Opera 11.6 to 12.0 */
  background: -moz-radial-gradient(circle, red, yellow, green); /* Firefox 3.6 to 15 */
  background: radial-gradient(circle, red, yellow, green); /* Standard syntax */
}</pre>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>There are a lot to learn about CSS3 gradients, you can search on w3schools for more arguments support. We hope it has been helpful for you. If you have any types of questions related to CSS3 feel free to comment it bellow. 🙂</p>
<p>The post <a href="https://www.technig.com/understanding-css3-radial-gradient/">Understanding CSS3 Radial Gradient &#8211; Part 2</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/understanding-css3-radial-gradient/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">6917</post-id>	</item>
		<item>
		<title>Understanding Linear and Radial CSS3 Gradient &#8211; Part 1</title>
		<link>https://www.technig.com/css3-gradient-technique-linear-radial/</link>
					<comments>https://www.technig.com/css3-gradient-technique-linear-radial/#respond</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Thu, 14 Apr 2016 06:30:36 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSS3 Gradient]]></category>
		<category><![CDATA[How to]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=6826</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"></div>
<p>Understanding CSS3 gradient will make you a pro web designer. CSS3 gradients let you display smooth transitions between two or more specified colors. In this step by step tutorial about CSS3 gradient technique , you learn from the basic to advance of CSS3 gradient. It&#8217;s the new feature of CSS3. Previously, we used to use images [&#8230;]</p>
<p>The post <a href="https://www.technig.com/css3-gradient-technique-linear-radial/">Understanding Linear and Radial CSS3 Gradient &#8211; Part 1</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"></div><p style="text-align: justify">Understanding CSS3 gradient will make you a pro web designer. CSS3 gradients let you display smooth transitions between two or more specified colors. In this step by step tutorial about CSS3 gradient technique , you learn from the basic to advance of CSS3 gradient. It&#8217;s the new feature of CSS3. Previously, we used to use images to display different color. Using Gradient instead of image can reduce download time of your web site.</p>
<h2>Browser Supprt</h2>
<p>Mainly, we have two types of gradient, linear gradient and radial gradient. The CSS3 gradient technique article is in two part, and you will learn both gradient types. The browser support pretty good, but you must use -webkit-, -moz-, or -o-  prefix to make it work on major version of browsers.</p>
<figure id="attachment_6849" aria-describedby="caption-attachment-6849" style="width: 1182px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2016/04/css3-gradient-support.jpg"><img decoding="async" class="size-full wp-image-6849" src="https://www.technig.com/wp-content/uploads/2016/04/css3-gradient-support.jpg" alt="css3 gradient support" width="1182" height="586" /></a><figcaption id="caption-attachment-6849" class="wp-caption-text">css3 gradient support</figcaption></figure>
<h2>CSS3 Linear Gradient function</h2>
<p>The CSS linear-gradient() function creates an &lt;image&gt; which represents a linear gradient of colors.  Basically, you can give two color to this function, one for starting point and the second for end point. If you want to customize it more, you can define the direction as first argument as well. Here is an example.</p>
<p>[codepen_embed height=&#8221;268&#8243; theme_id=&#8221;0&#8243; slug_hash=&#8221;NNYdzv&#8221; default_tab=&#8221;result&#8221; user=&#8221;Hujjat&#8221;]See the Pen &lt;a href=&#8217;http://codepen.io/Hujjat/pen/NNYdzv/&#8217;&gt;Practicing css3 linear gradient&lt;/a&gt; by Hujjat Nazari (&lt;a href=&#8217;http://codepen.io/Hujjat&#8217;&gt;@Hujjat&lt;/a&gt;) on &lt;a href=&#8217;http://codepen.io&#8217;&gt;CodePen&lt;/a&gt;.[/codepen_embed]</p>
<p>As you can see in the above example, we have given three value with two color. Of course you can give rgb or hex color value as well. In real world, you would do something like this</p>
<pre class="theme:sublime-text lang:css decode:true ">.gradient-technig {
  height: 100px;
  background: red; /* For browsers that do not support gradients */
    background: -webkit-linear-gradient(to left,red, yellow); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(to left,red, yellow); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(to left,red, yellow); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to left,red, yellow); /* Standard syntax */
}
</pre>
<p>Now, this is an standard way of using gradient which every major browsers will support.</p>
<h2>CSS3 Gradient Technique Example</h2>
<p>Let&#8217;s apply what we have learn in a real world example. For this example, we are going to apply it on a picture.</p>
<p>[codepen_embed height=&#8221;268&#8243; theme_id=&#8221;0&#8243; slug_hash=&#8221;KzoaYR&#8221; default_tab=&#8221;result&#8221; user=&#8221;Hujjat&#8221;]See the Pen &lt;a href=&#8217;http://codepen.io/Hujjat/pen/KzoaYR/&#8217;&gt;Css3 Gradient Example&lt;/a&gt; by Hujjat Nazari (&lt;a href=&#8217;http://codepen.io/Hujjat&#8217;&gt;@Hujjat&lt;/a&gt;) on &lt;a href=&#8217;http://codepen.io&#8217;&gt;CodePen&lt;/a&gt;.[/codepen_embed]</p>
<p>As you can see the example, the smooth red color above the picture is gradient. If you want see the code, click on css tab and see that it is really and command  example to use. The second color or the end point color is rgba (red,green,blue,alpha). The last value for rgba is opacity which is equal to zero. I means the second color is not visible and I have just put random numbers.</p>
<h2>Conclusion</h2>
<p>So, It was the part one of CSS gradient technique. In part 2, we will show you have use use radial gradient in CSS3. We hope it has been informative for you. If you have any question, feel free to comment it below. 🙂</p>
<p>The post <a href="https://www.technig.com/css3-gradient-technique-linear-radial/">Understanding Linear and Radial CSS3 Gradient &#8211; Part 1</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/css3-gradient-technique-linear-radial/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">6826</post-id>	</item>
	</channel>
</rss>
