<?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>Matt Axell, Graphic &#38; Web Designer - Worthing, West Sussex</title>
	<atom:link href="http://www.mole-design.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mole-design.co.uk</link>
	<description>Graphic/Web design portfolio of Matt Axell</description>
	<lastBuildDate>Mon, 26 Sep 2011 11:41:10 +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>Get Dizzy With CSS3</title>
		<link>http://www.mole-design.co.uk/tutorial/web-design/get-dizzy-with-css3/</link>
		<comments>http://www.mole-design.co.uk/tutorial/web-design/get-dizzy-with-css3/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:09:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.mole-design.co.uk/?p=511</guid>
		<description><![CDATA[Being a completely self taught web designer I like to share little pieces of code/tips I learn along the way that may (or may not!) help others that might be in the same situation I was in when I first started out with HTML/CSS a few years ago. I owe pretty much everything I know [...]]]></description>
			<content:encoded><![CDATA[<p>Being a completely self taught web designer I like to share little pieces of code/tips I learn along the way that may (or may not!) help others that might be in the same situation I was in when I first started out with HTML/CSS a few years ago. I owe pretty much everything I know now to the vast about of web design blogs out there who produce tutorials on how to do accomplish almost anything.</p>
<p>Today is a very quick, fun tip showing you how to spin an item on hover. This technique is used right here on my site, so you can see it in action by hovering over the Mole logo on the left.</p>
<p>This is probably not the most practical of tutorials, but hey this one&#8217;s just for fun to show just a little bit of what you can do with CSS3.</p>
<p>In terms of the HTML, I&#8217;ve just got my logo, a .png image inside a h1 tag with an id of &#8216;logo&#8217;.</p>
<p>Now we&#8217;re going to make the logo spin using the CSS3 properties transform and transition.</p>
<pre><code>h1#logo:hover {
 -moz-transform: rotate(360deg);
 -webkit-transform: rotate(360deg);
 -moz-transition: all ease 1s;
 -webkit-transition: all ease 1s;
 -o-transition: all ease 1s;
 transition: all ease 1s;
}</code></pre>
<p>The first thing we do is rotate the logo 360 degrees using the transform property giving it a value of rotate(360deg). This will spin the logo 360deg clockwise, to rotate anti-clockwise just use the value rotate(-360deg).</p>
<p>This on it&#8217;s own will not actually affect the logo at all on hover as rotating an element 360 degrees returns it to the same position that it started so we need to add some css transitions to animate the effect.</p>
<p>The values used can be explained as follows. </p>
<p><em>all</em> indicates that all properties of the :hover class will be affected by this.</p>
<p><em>ease</em> is the type of transition to use. There are other options such as <em>ease-in, ease-out</em> and <em>linear</em></p>
<p><em>1s</em> is the time is takes for the transition to take place. For more subtle affects on hovers such as background color values like .2s can be effective.</p>
<p>Now obviously this time of effect won&#8217;t be visible to users of Internet Explorer but be sure to add all the prefixes shown (-moz-, -webkit-, -o-) to enable it in Firefox and Webkit browsers like Chrome and Safari.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mole-design.co.uk/tutorial/web-design/get-dizzy-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

