<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Changing a Background-image with CSS3 Transitions</title>
	<atom:link href="http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/</link>
	<description>realizations on life, the web, and everything</description>
	<lastBuildDate>Mon, 16 Mar 2015 06:43:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Veckans l&#228;nktips – 2012-10-07&#160;&#124;&#160;lillbra.se</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3837</link>
		<dc:creator>Veckans l&#228;nktips – 2012-10-07&#160;&#124;&#160;lillbra.se</dc:creator>
		<pubDate>Sun, 07 Oct 2012 19:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3837</guid>
		<description>[...] Changing a Background-image with CSS3 Transitions :: Fleeting Epiphanies Vill du använda css transitions på bakgrundsbilder? Det går! Enkelt men snyggt. [...]</description>
		<content:encoded><![CDATA[<p>[...] Changing a Background-image with CSS3 Transitions :: Fleeting Epiphanies Vill du använda css transitions på bakgrundsbilder? Det går! Enkelt men snyggt. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymaus</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3831</link>
		<dc:creator>anonymaus</dc:creator>
		<pubDate>Wed, 20 Jun 2012 21:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3831</guid>
		<description>and the html would look something like this:

div id=&quot;msgbtnbg&quot;  
a href=&quot;/contact&quot; id=&quot;msgbtn&quot; title=&quot;&quot;
/a
/div</description>
		<content:encoded><![CDATA[<p>and the html would look something like this:</p>
<p>div id=&#8221;msgbtnbg&#8221;<br />
a href=&#8221;/contact&#8221; id=&#8221;msgbtn&#8221; title=&#8221;"<br />
/a<br />
/div</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymaus</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3830</link>
		<dc:creator>anonymaus</dc:creator>
		<pubDate>Wed, 20 Jun 2012 21:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3830</guid>
		<description>div style=&quot;display:none&quot;
img src=&quot;../images/hdr-msg_up.png&quot; alt=&quot;&quot; /
img src=&quot;../images/hdr-msg_down.png&quot; alt=&quot;&quot; /
img src=&quot;../images/hdr-twitter_up.png&quot; alt=&quot;&quot; /
img src=&quot;../images/hdr-twitter_down.png&quot; alt=&quot;&quot; /
/div</description>
		<content:encoded><![CDATA[<p>div style=&#8221;display:none&#8221;<br />
img src=&#8221;../images/hdr-msg_up.png&#8221; alt=&#8221;" /<br />
img src=&#8221;../images/hdr-msg_down.png&#8221; alt=&#8221;" /<br />
img src=&#8221;../images/hdr-twitter_up.png&#8221; alt=&#8221;" /<br />
img src=&#8221;../images/hdr-twitter_down.png&#8221; alt=&#8221;" /<br />
/div</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymaus</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3829</link>
		<dc:creator>anonymaus</dc:creator>
		<pubDate>Wed, 20 Jun 2012 21:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3829</guid>
		<description>a hack for transitioning between normal and hover states would be putting the hover image as the background image for the link set at zero opacity, on top of the div under it that has the normal state background image. then, on hover, the opacity transitions to 100 and back out. 

i.e. 
#msgbtnbg { width: 160px; height: 46px; background: url(../images/msg_normal.png) center top no-repeat; }

#msgbtn { width: 160px; height: 46px; background: url(../images/msg_up.png) center top no-repeat; 
filter:alpha(opacity=0); opacity: 0; -webkit-transition:  opacity 0.2s linear; -moz-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear; transition: opacity 0.2s linear;}

#msgbtn:hover, #msgbtn:focus { filter:alpha(opacity=100); opacity: 100;  } 

#msgbtn:active {  background: url(../images/hdr-msg_down.png) center top no-repeat;  }

dont forget to pre-load images somewhere else on the page with something like:



</description>
		<content:encoded><![CDATA[<p>a hack for transitioning between normal and hover states would be putting the hover image as the background image for the link set at zero opacity, on top of the div under it that has the normal state background image. then, on hover, the opacity transitions to 100 and back out. </p>
<p>i.e.<br />
#msgbtnbg { width: 160px; height: 46px; background: url(../images/msg_normal.png) center top no-repeat; }</p>
<p>#msgbtn { width: 160px; height: 46px; background: url(../images/msg_up.png) center top no-repeat;<br />
filter:alpha(opacity=0); opacity: 0; -webkit-transition:  opacity 0.2s linear; -moz-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear; transition: opacity 0.2s linear;}</p>
<p>#msgbtn:hover, #msgbtn:focus { filter:alpha(opacity=100); opacity: 100;  } </p>
<p>#msgbtn:active {  background: url(../images/hdr-msg_down.png) center top no-repeat;  }</p>
<p>dont forget to pre-load images somewhere else on the page with something like:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Ins and Outs of Dynamic Navigation Menus &#171; DesignParlor</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3817</link>
		<dc:creator>The Ins and Outs of Dynamic Navigation Menus &#171; DesignParlor</dc:creator>
		<pubDate>Sat, 17 Mar 2012 17:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3817</guid>
		<description>[...] is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile OS’, [...]</description>
		<content:encoded><![CDATA[<p>[...] is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile OS’, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS for navigation &#124;</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3788</link>
		<dc:creator>CSS for navigation &#124;</dc:creator>
		<pubDate>Thu, 16 Feb 2012 09:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3788</guid>
		<description>[...] Changing a Background-image with CSS3 Transitions [...]</description>
		<content:encoded><![CDATA[<p>[...] Changing a Background-image with CSS3 Transitions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Gardner</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3786</link>
		<dc:creator>Dustin Gardner</dc:creator>
		<pubDate>Tue, 03 Jan 2012 13:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3786</guid>
		<description>On the sprite image transition (First Link) I&#039;m looking to make the size about 1005 pixels wide, and 150 pixels tall. The changing of the actual area was easy, but how would I get the image to fit correctly here as well? This involves moving the transitional image over more, creating a larger image altogether, and then positioning it differently as well. I&#039;m not the best when it comes to mathematics of this nature, so could someone give me some pointers here?</description>
		<content:encoded><![CDATA[<p>On the sprite image transition (First Link) I&#8217;m looking to make the size about 1005 pixels wide, and 150 pixels tall. The changing of the actual area was easy, but how would I get the image to fit correctly here as well? This involves moving the transitional image over more, creating a larger image altogether, and then positioning it differently as well. I&#8217;m not the best when it comes to mathematics of this nature, so could someone give me some pointers here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Ins and Outs of Dynamic Navigation Menus &#124; Design Shack</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3785</link>
		<dc:creator>The Ins and Outs of Dynamic Navigation Menus &#124; Design Shack</dc:creator>
		<pubDate>Mon, 07 Nov 2011 22:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3785</guid>
		<description>[...] effect is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile [...]</description>
		<content:encoded><![CDATA[<p>[...] effect is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Ins and Outs of Dynamic Navigation Menus &#124; Designer Malaysia</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3781</link>
		<dc:creator>The Ins and Outs of Dynamic Navigation Menus &#124; Designer Malaysia</dc:creator>
		<pubDate>Wed, 26 Oct 2011 02:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3781</guid>
		<description>[...] effect is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile OS’, [...]</description>
		<content:encoded><![CDATA[<p>[...] effect is handy if your layout works well holding fixed-width link buttons. jQuery is an option but CSS3 transitions may feel like a better alternative. Both CSS3 and JavaScript boast flaky support in mobile OS’, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asaf Bochman</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/comment-page-1/#comment-3725</link>
		<dc:creator>Asaf Bochman</dc:creator>
		<pubDate>Wed, 06 Apr 2011 19:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895#comment-3725</guid>
		<description>So I&#039;ve been building a small subnav on one of our landing pages and came up with a way to transition from one background to another with a fallback for IE.

The markup is simple:

The css is a bit more but basically puts two layers of background images and animating the opacity on hover. This can be modded for IE after adding this to the :hover state of the anchor.

element {
background-image:hover image; // This will be shown on hover.
}

a {
background-image:non-hover image;  //  This will be shown during all states except hover

}
a:hover {
filter:alpha(opacity=0);  // For IE
	opacity: 0;  // For modern browsers
// Animates the opacity of the anchor image revealing the image underneath contained in the element.
}

Example:

www.tsfexhbit.com/landing_page/featured_exhibits


I don&#039;t have too much time to mess around but I believe this might also be achievable with the new CSS3 psuedo class  &quot;:before&quot; instead of using an additional element.

Cheers.</description>
		<content:encoded><![CDATA[<p>So I&#8217;ve been building a small subnav on one of our landing pages and came up with a way to transition from one background to another with a fallback for IE.</p>
<p>The markup is simple:</p>
<p>The css is a bit more but basically puts two layers of background images and animating the opacity on hover. This can be modded for IE after adding this to the :hover state of the anchor.</p>
<p>element {<br />
background-image:hover image; // This will be shown on hover.<br />
}</p>
<p>a {<br />
background-image:non-hover image;  //  This will be shown during all states except hover</p>
<p>}<br />
a:hover {<br />
filter:alpha(opacity=0);  // For IE<br />
	opacity: 0;  // For modern browsers<br />
// Animates the opacity of the anchor image revealing the image underneath contained in the element.<br />
}</p>
<p>Example:</p>
<p><a href="http://www.tsfexhbit.com/landing_page/featured_exhibits" rel="nofollow">http://www.tsfexhbit.com/landing_page/featured_exhibits</a></p>
<p>I don&#8217;t have too much time to mess around but I believe this might also be achievable with the new CSS3 psuedo class  &#8220;:before&#8221; instead of using an additional element.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
