<?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>فیلترهای CSS &#8211; طراحان | طراحی  وب سایت حرفه ای |طراحی فروشگاه اینترنتی</title>
	<atom:link href="http://tarahan.com/tag/%D9%81%DB%8C%D9%84%D8%AA%D8%B1%D9%87%D8%A7%DB%8C-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://tarahan.com</link>
	<description>حرفه ای ترین طراحی وب سایت و فروشگاه اینترنتی &#124; T A R A H A N</description>
	<lastBuildDate>Fri, 22 Jan 2016 15:48:51 +0000</lastBuildDate>
	<language>fa-IR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.10</generator>
	<item>
		<title>فیلترهای CSS</title>
		<link>http://tarahan.com/%d9%81%db%8c%d9%84%d8%aa%d8%b1-%d9%87%d8%a7%db%8c-css/</link>
					<comments>http://tarahan.com/%d9%81%db%8c%d9%84%d8%aa%d8%b1-%d9%87%d8%a7%db%8c-css/#respond</comments>
		
		<dc:creator><![CDATA[طراحان]]></dc:creator>
		<pubDate>Fri, 22 Jan 2016 15:48:51 +0000</pubDate>
				<category><![CDATA[آموزش طراحی سایت]]></category>
		<category><![CDATA[طراحی گرافیک]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS filters]]></category>
		<category><![CDATA[Graphic design]]></category>
		<category><![CDATA[طراحی حرفه ای]]></category>
		<category><![CDATA[طراحی سایت]]></category>
		<category><![CDATA[فیلترهای CSS]]></category>
		<guid isPermaLink="false">http://tarahan.com/?p=5373</guid>

					<description><![CDATA[فیلترهای CSS و نحوه کارآیی آن‌ها فیلترهای CSS ابزاری قدرتمند هستند که بوسیله آن ها می توان جلوه های ویژه ای به تصاویر موجود در سایت<span class="excerpt-hellip"> […]</span>]]></description>
										<content:encoded><![CDATA[<h3 style="direction: rtl;"><strong>فیلترهای CSS و نحوه کارآیی آن‌ها</strong></h3>
<p style="direction: rtl;"><em>فیلترهای CSS</em> ابزاری قدرتمند هستند که بوسیله آن ها می توان جلوه های ویژه ای به تصاویر موجود در سایت بخشید.</p>
<p style="direction: rtl;">استفاده از این فیلترها ساده است به شرطی که کارآیی تمامی پارامترها مشخص باشد. در مثال پایین،</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: grayscale(50%); }</center></div>
<p style="direction: rtl;">اولین چیزی که به چشم می خورد، پیشوند webkit است. بعد از آن، یک پارامتر و کمیت تغییرات (داخل پرانتز) آورده شده است. در مثال ذکر شده، پارامتر Grayscale بکار گرفته شده است و میزان این تغییر تا ۵۰ درصد است. چنانچه این مقدار به ۱۰۰ درصد برسد، عکس کاملاً سیاه و سفید می شود. نتیجتاً، این کمیت شدت اعمال تغییرات را نمایش می دهد.</p>
<h4 style="direction: rtl;"><strong>انواع فیلترهای CSS</strong></h4>
<p style="direction: rtl;"><em>فیلترهای CSS</em> انواع زیادی دارند که برخی رواج بیشتری دارند و برخی پرکاربردتر هستند. در این مقاله تعداد معدودی از فیلترها به همراه مثالی از کارآیی آن ها معرفی می‌شوند. عکس زیر، تصویر اصلی است که روی آن تغییرات انجام می شوند که با مقایسه تصاویر می توان به نحوه عملکرد فیلتر پی می برد.</p>
<p style="direction: rtl;"><a href="http://tarahan.com/wp-content/uploads/2016/01/a1.jpg"><img loading="lazy" class="aligncenter wp-image-5387 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/a1.jpg" alt="a1 فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/a1.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/a1-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/a1-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/a1-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/a1-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<h3 style="direction: rtl;"><strong>Grayscale</strong></h3>
<p style="direction: rtl;">این پارامتر تصویر را سیاه و سفید می کند. هرچه شدت آن بیشتر باشد یعنی کمیت آن افزایش یابد، میزان تاثیر فیلتر بیشتر می شود.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: grayscale(100%); }</center></div>
<p style="direction: rtl;"><a href="http://tarahan.com/wp-content/uploads/2016/01/b.jpg"><img loading="lazy" class=" size-full wp-image-5376 aligncenter" src="http://tarahan.com/wp-content/uploads/2016/01/b.jpg" alt="b فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/b.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/b-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/b-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/b-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/b-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<h3 style="text-align: right;"><strong>Sepia</strong></h3>
<p style="direction: rtl;">فیلتر سبک غریی Sepia تغییراتی مشابه فیلتر Grayscale اعمال می کند.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: sepia(100%); }</center></div>
<p style="text-align: center;"><img loading="lazy" class="aligncenter wp-image-5378 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/e1.jpg" alt="e1 فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/e1.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/e1-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/e1-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/e1-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/e1-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></p>
<h3 style="direction: rtl;"><strong>Blur</strong></h3>
<p style="direction: rtl;">فیلتر Blur بسیار شبیه ابزار Guassian Blur در فوتوشاپ عمل می کند و به نوعی تصویر را تار می نماید. با تعیین مقدار پیکسل این پارامتر می توان میزان وضوح تصویر را تغییر داد. همانطور که واضح است واحد کمیت این فیلتر پیکسل می باشد.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: blur(10px); }</center></div>
<p style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/g1.jpg"><img loading="lazy" class="aligncenter wp-image-5379 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/g1.jpg" alt="g1 فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/g1.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/g1-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/g1-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/g1-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/g1-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: blur(50px); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/h1.jpg"><img loading="lazy" class="aligncenter wp-image-5380 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/h1.jpg" alt="h1 فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/h1.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/h1-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/h1-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/h1-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/h1-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<h3 style="direction: rtl;"><strong>Saturation</strong></h3>
<p style="direction: rtl; text-align: right;">میزان اشباع تصاویر یا saturation، یکی از فیلترهای CSS است که میزان وضوح رنگ را نشان می دهد. برعکس، فیلترهایی که در بالا اشاره شدند برای saturation بازه ای وجود ندارد و تا هر میزان که مطلوب است می توان میزان اشباع رنگ ها را افزایش داد.</p>
<h3 style="text-align: center;"></h3>
<div style="direction: ltr !important;"><center>img { -webkit-filter: saturate(200%); }</center></div>
<p class="prettyprint " style="text-align: center;"><span class="pln"><img loading="lazy" class="aligncenter wp-image-5381 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/j.jpg" alt="j فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/j.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/j-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/j-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/j-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/j-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></span></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: saturate(2000%); }</center></div>
<p style="direction: ltr; text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/k.jpg"><img loading="lazy" class="aligncenter wp-image-5382 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/k.jpg" alt="k فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/k.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/k-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/k-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/k-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/k-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<h3 style="direction: rtl;"><strong>Contrast</strong></h3>
<p style="direction: rtl;">فیلتر Contrast مشابه Saturation عمل می کند. چنانچه کمیت مورد نظر شما در بازه ۰ تا ۱۰۰ درصد باشد، رنگ تصویر کدر می شود و هرچه از ۱۰۰ درصد بالاتر رود، شدت رنگ افزایش می یابد.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: contrast(50%); }</center></div>
<p class="prettyprint " style="text-align: center;"><span class="pln"><a href="http://tarahan.com/wp-content/uploads/2016/01/l.jpg"><img loading="lazy" class="aligncenter wp-image-5383 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/l.jpg" alt="l فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/l.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/l-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/l-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/l-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/l-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></span></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: contrast(500%); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/m.jpg"><img loading="lazy" class="aligncenter wp-image-5384 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/m.jpg" alt="m فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/m.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/m-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/m-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/m-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/m-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<figure class="post-tutorial-image"></figure>
<figure class="post-tutorial-image" style="direction: rtl;"></figure>
<h3 style="direction: rtl;"><strong>Brightness</strong></h3>
<p style="direction: rtl;">این فیلتر CSS یکی دیگر از فیلترهایی است که عملکردی مشابه Contrast و Saturation دارد. بازه ۰ تا ۱۰۰ آن رنگ تصویر را کدر می کند و مقدار بیشتر از ۱۰۰ رنگ تصویر را روشن می سازد.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: brightness(50%); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/n.jpg"><img loading="lazy" class="aligncenter wp-image-5385 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/n.jpg" alt="n فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/n.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/n-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/n-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/n-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/n-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: brightness(500%); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/o.jpg"><img loading="lazy" class="aligncenter wp-image-5386 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/o.jpg" alt="o فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/o.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/o-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/o-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/o-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/o-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<figure class="post-tutorial-image"></figure>
<figure class="post-tutorial-image"></figure>
<h3 style="direction: rtl;"><strong>Hue-rotation</strong></h3>
<p style="direction: rtl;">Hue-rotation یکی از جالب ترین <em>فیلترهای CSS</em> است که با توجه به درجه رنگی مورد نظر شما، رنگ های تصویر را مطابق ترتیب رنگی در چرخه رنگ ها تغییر می دهد. چرخه رنگ ها از ۰ تا ۳۶۰ درجه رنگ های متفاوتی دارد. با انتخاب یک نقطه در بازه آن، رنگ ها تغییر می کنند.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: hue-rotate(45deg); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/p.jpg"><img loading="lazy" class="aligncenter wp-image-5389 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/p.jpg" alt="p فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/p.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/p-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/p-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/p-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/p-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: hue-rotate(120deg); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/q.jpg"><img loading="lazy" class="aligncenter wp-image-5390 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/q.jpg" alt="q فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/q.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/q-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/q-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/q-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/q-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: hue-rotate(240deg); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/r.jpg"><img loading="lazy" class="aligncenter wp-image-5391 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/r.jpg" alt="r فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/r.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/r-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/r-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/r-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/r-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<figure class="post-tutorial-image"></figure>
<figure class="post-tutorial-image"></figure>
<figure class="post-tutorial-image"></figure>
<h3 style="direction: rtl;"><strong>Invert</strong></h3>
<p style="direction: rtl;">فیلتر Invert رنگ های تصویر را معکوس می کند. تنها کاری که برای استفاده از این فیلتر باید بکنید این است که مشخص کنید تا چه میزان می خواهید تغییر در تصویر خود ایجاد کنید.</p>
<div style="direction: ltr !important;"><center>img { -webkit-filter: invert(100%); }</center></div>
<p class="prettyprint " style="text-align: center;"><a href="http://tarahan.com/wp-content/uploads/2016/01/s.jpg"><img loading="lazy" class="aligncenter wp-image-5392 size-full" src="http://tarahan.com/wp-content/uploads/2016/01/s.jpg" alt="s فیلترهای CSS" width="400" height="300" srcset="http://tarahan.com/wp-content/uploads/2016/01/s.jpg 400w, http://tarahan.com/wp-content/uploads/2016/01/s-300x225.jpg 300w, http://tarahan.com/wp-content/uploads/2016/01/s-195x146.jpg 195w, http://tarahan.com/wp-content/uploads/2016/01/s-50x38.jpg 50w, http://tarahan.com/wp-content/uploads/2016/01/s-100x75.jpg 100w" sizes="(max-width: 400px) 100vw, 400px" title="فیلترهای CSS" /></a></p>
<figure class="post-tutorial-image"></figure>
<h3 style="direction: rtl;"><strong>محدودیت فیلترهای CSS</strong></h3>
<ul>
<li style="direction: rtl;"> یکی از محدودیت های اصلی فیلترها، پشتیبانی مرورگرها از آن هاست. همانطور که مشاهده کردید تمامی فیلترها پیشوند webkit دارند و این بدین معنی است که تنها در مرورگرهایی قابل استفاده هستند که از این ویژگی پشتیبانی می کنند (Chrome 7, Opera 20, Safari, Blackberry Browser, Firefox 34, Android Browser)<b>. </b></li>
<li style="direction: rtl;">محدودیت بعدی به زمان بارگذاری سایت بر می گردد که با استفاده از <em>فیلترهای CSS</em> این زمان افزایش یافته و درنتیجه کارآیی سایت را کاهش می دهد.</li>
</ul>
<p style="direction: rtl;"> منبع: <span style="text-decoration: underline;"><a href="https://webdesignviews.com" target="_blank">webdesignviews.com</a></span></p>
]]></content:encoded>
					
					<wfw:commentRss>http://tarahan.com/%d9%81%db%8c%d9%84%d8%aa%d8%b1-%d9%87%d8%a7%db%8c-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
