<?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>tjameswhite &#187; transform</title>
	<atom:link href="http://tjameswhite.com/archives/tag/transform/feed/" rel="self" type="application/rss+xml" />
	<link>http://tjameswhite.com</link>
	<description>My infrequent thoughts, ideas and ramblings.</description>
	<lastBuildDate>Thu, 08 Dec 2011 02:10:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fisheye Effect via CSS</title>
		<link>http://tjameswhite.com/archives/fisheye-effect-via-css/</link>
		<comments>http://tjameswhite.com/archives/fisheye-effect-via-css/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 01:38:42 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://tjameswhite.com/?p=527</guid>
		<description><![CDATA[In which we transform.]]></description>
			<content:encoded><![CDATA[<p>On the CSS-d mailing list Gabriele posted a demo titled <a href="http://onwebdev.blogspot.com/2010/06/pure-css-fisheye-menu-with-icons.html">Pure CSS fisheye menu with icons</a>. It&#8217;s a nifty little demo replicating the zooming dock feature you&#8217;ll find on Mac and Stardock&#8217;s Dock.</p>
<p>I decided to take it one step beyond and utilize CSS 3&#8242;s transform properties, resulting in my own <a href="demos/fisheye/">Fisheye demo</a>.</p>
<p>I cut out much of Gabriele&#8217;s code that handled the zooming and replaced it with <del>Folgers Crystals</del> <code>transition</code> and <code>transform</code>. (Although I kept pretty much everything else she built, including her icons. Thank you Gabriele for the inspiration.)</p>
<p>Specifically, on the navigation anchors we have <code>transition: all .1s ease-in-out</code>. In a nutshell, this says, &#8220;All transitions should take .1 seconds to complete and they should do it smoothly.&#8221; We also have <code>transform-origin: 50% 0</code> which moves the center of action to the center top of the anchor box.</p>
<p>It isn&#8217;t until we get to the <code>hover/active/focus</code> states that things happen. Here we have <code>transform: scale(1.5)</code>, which you&#8217;ve no doubt already concluded causes the element to grow by a factor of 1.5. An important thing to note about this, the <code>transform</code> is applied to the anchor element and therefore affect everything <em>inside</em> that anchor, be it a background image, text or foreground image.</p>
<p>Of course it isn&#8217;t <em>quite</em> that simple. Because this part of CSS 3 is under development, we need to utilize various vender prefixes. So to see it actually work you&#8217;ll need to add <code>-moz-</code>, <code>-webkit-</code> and <code>-o-</code> to the front of all the transform properties. Not surprising there is not support for Internet Explorer, but that&#8217;s OK, it doesn&#8217;t matter. Anyone using IE won&#8217;t know what they are missing. Go see for yourself.</p>
<p>And look for the Easter Egg&hellip; .</p>
]]></content:encoded>
			<wfw:commentRss>http://tjameswhite.com/archives/fisheye-effect-via-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

