<?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"

			>

	<channel>

		<title>Fade in from black and white to color on an image &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 05:48:23 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-258711</guid>
					<title><![CDATA[Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-258711</link>
					<pubDate>Sun, 26 Apr 2015 07:38:30 +0000</pubDate>
					<dc:creator>dkim1017</dc:creator>

					<description>
						<![CDATA[
						<p><a href="http://www.dqualify.com" rel="nofollow">http://www.dqualify.com</a></p>
<p>In the home page of my website, I have a series of images that link to the blog post related to it.  I would like to add a fade in effect to those images.</p>
<p>I would like to have them black and white initially, and have the colors fade in when house hovered.</p>
<p><a href="http://css3.bradshawenterprises.com/cfimg/" rel="nofollow">http://css3.bradshawenterprises.com/cfimg/</a><br />
Here, demo 1 shows exactly what I want to achieve (I would have two images prepared: black and white, color).<br />
I tried using the code posted on the website, but with X theme, I am still confused on where to type in specific css attributes for certain classes.</p>
<p>For example, let&#8217;s say I go to Pages &gt; Add new and give it the content below using the text editor.</p>
<p>.img {<br />
  position:absolute;<br />
  left:0;<br />
  -webkit-transition: opacity 1s ease-in-out;<br />
  -moz-transition: opacity 1s ease-in-out;<br />
  -o-transition: opacity 1s ease-in-out;<br />
  transition: opacity 1s ease-in-out;<br />
}</p>
<p>.crossfade img.top:hover {<br />
  opacity:0;<br />
}<br />
(Here, I am using the coded provided in the link above, and just changing the images.)</p>
<p>&lt;div class=&#8221;crossfade&#8221;&gt;<br />
<img decoding="async" src="http://www.dqualify.com/wp-content/uploads/2015/03/BlackInfra_Nike_cover.jpg" alt="descrp" /><br />
<img decoding="async" src="http://www.dqualify.com/wp-content/uploads/2015/03/Columbia_Nike_cover.jpg" alt="asd" /><br />
&lt;/div&gt;</p>
<p>When I load the page, it will not recognize the CSS attributes and just print the text as is.</p>
<p>I see that there is a &#8220;Body CSS Class(es)&#8221; under the setting, but I have no idea how to utilize it.<br />
Where must I put the CSS codes for them to work properly?</p>
<p>As always, many thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-258715</guid>
					<title><![CDATA[Reply To: Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-258715</link>
					<pubDate>Sun, 26 Apr 2015 07:49:19 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Thanks for posting in!</p>
<p>This should be the format of your code. You forgot to add a class=&#8221;top&#8221; to your second image that will be displayed when you hover it.</p>
<pre><code>&lt;div class=&quot;crossfade&quot;&gt;
&lt;img src=&quot;http://www.dqualify.com/wp-content/uploads/2015/03/BlackInfra_Nike_cover.jpg&quot; alt=&quot;descrp&quot; /&gt;
&lt;img class=&quot;top&quot; src=&quot;http://www.dqualify.com/wp-content/uploads/2015/03/Columbia_Nike_cover.jpg&quot; alt=&quot;asd&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>Most modern browsers has now the capability of using filters via css. Why don&#8217;t you give it a try. Please check it out here: <a href="http://labs.voronianski.com/css3-grayscale/" rel="nofollow">http://labs.voronianski.com/css3-grayscale/</a></p>
<p>Hope this helps. Kindly let us know.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-259013</guid>
					<title><![CDATA[Reply To: Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-259013</link>
					<pubDate>Sun, 26 Apr 2015 19:07:57 +0000</pubDate>
					<dc:creator>dkim1017</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks you for the response.<br />
Where do I need to put the CSS attributes so it is applied to the page?<br />
Right now, when I load the page, it shows the CSS attributes as just plain text as shown.<br />
<img decoding="async" src="http://www.dqualify.com/wp-content/uploads/2015/04/testpage.png" alt="" /></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-259152</guid>
					<title><![CDATA[Reply To: Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-259152</link>
					<pubDate>Mon, 27 Apr 2015 01:07:34 +0000</pubDate>
					<dc:creator>Lely</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Your HTML should be:</p>
<pre><code>&lt;div id=&quot;crossfade&quot;&gt;
 &lt;img class=&quot;bottom&quot; src=&quot;http://www.dqualify.com/wp-content/uploads/2015/03/BlackInfra_Nike_cover.jpg&quot; alt=&quot;descrp&quot;&gt;
 &lt;img class=&quot;top&quot; src=&quot;http://www.dqualify.com/wp-content/uploads/2015/03/Columbia_Nike_cover.jpg&quot; alt=&quot;asd&quot;&gt;
&lt;/div&gt;</code></pre>
<p>*Take note of the <strong>class=&#8221;bottom&#8221;</strong> and <strong>class=&#8221;top&#8221;</strong> on images above.</p>
<p>Please add the following CSS code in your <strong>Customizer via Appearance &gt; Customize &gt; Custom &gt; CSS:</strong></p>
<pre><code>#crossfade{
  position:relative;
  height:281px;
  width:450px;
  margin:0 auto;
}

#crossfade img {
  position:absolute;
  left:0;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

#crossfade img.top:hover {
  opacity:0;
}</code></pre>
<p>Hope this helps.<br />
Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-260232</guid>
					<title><![CDATA[Reply To: Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-260232</link>
					<pubDate>Tue, 28 Apr 2015 06:38:57 +0000</pubDate>
					<dc:creator>dkim1017</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you for the input. I got it to work now!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-260247</guid>
					<title><![CDATA[Reply To: Fade in from black and white to color on an image]]></title>
					<link>https://theme.co/archive/forums/topic/fade-in-from-black-and-white-to-color-on-an-image/#post-260247</link>
					<pubDate>Tue, 28 Apr 2015 06:55:27 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>Glad to hear that.</p>
<p>Let us know if you need anything else.</p>
<p>Thanks. Have a great day! 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

