<?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>Eren Emre. UI+UX Designer. San Francisco, CA. &#187; Web Technologies</title>
	<atom:link href="http://erenemre.com/category/web-technologies/feed" rel="self" type="application/rss+xml" />
	<link>http://erenemre.com</link>
	<description>When I get angry, I become a giant green UI designer.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:55:46 +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>Cool photograph effect, pure CSS3</title>
		<link>http://erenemre.com/556</link>
		<comments>http://erenemre.com/556#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:13:20 +0000</pubDate>
		<dc:creator>Eren Emre Kanal</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Technologies]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://erenemre.com/?p=556</guid>
		<description><![CDATA[This is something created by me a few days ago while playing with the new CSS3 features like the transform &#38; box-shadow. Nothing fancy, just trying to give depth to the image. I&#8217;m assuming you are viewing this page with a brand new Firefox or Safari (webkit) browser. Otherwise, you won&#8217;t be able to see [...]]]></description>
			<content:encoded><![CDATA[<p>This is something created by me a few days ago while playing with the new CSS3 features like the <code>transform</code> <span class="amp">&amp;</span> <code>box-shadow</code>. Nothing fancy, just trying to give depth to the image.</p>
<style type="text/css">
<!--
#shadow1 {
	margin: 50px auto 40px auto;
	width: 500px;
}
#shadow1 div, #shadow1 div div {
	-webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5); 
	-moz-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5); 
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
	width: 480px; 
	height: 303px; 
	background: #fff;
}
#shadow1 div {
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	transform: rotate(2deg);
}
#shadow1 div div {
	-webkit-transform: rotate(-4deg);
	-moz-transform: rotate(-4deg);
	transform: rotate(-4deg);
}
#shadow1 div div img {
	-webkit-transform: rotate(2deg); 
	-moz-transform: rotate(2deg);
	transform: rotate(2deg); 
	margin: -30px 0 0 -10px; 
	border: 4px solid #fff;
}
-->
</style>
<div id="shadow1">
<div>
<div>
			<a class="img" href="http://www.flickr.com/photos/eren/4358108687/in/set-72157623313299649/"><img src="http://farm3.static.flickr.com/2749/4358108687_b62f3d0c5c.jpg" alt="That's me" /></a>
		</div>
</p></div>
</div>
<p>I&#8217;m assuming you are viewing this page with a brand new <strong>Firefox or Safari (webkit) browser</strong>. Otherwise, you won&#8217;t be able to see the effect <em><a href="http://erenemre.com/wp-content/uploads/2010/03/Screen-shot-2010-03-01-at-6.25.03-AM.png">(OK here is a screenshot)</a></em>.</p>
<p>For those who want to use this effect, I&#8217;d recommend you to play with this code a little bit. Because it&#8217;s a little bit of mess. You&#8217;ll need to change the width to your image&#8217;s, maybe a few more tweaks.</p>
<p><code>
<pre>&lt;style type="text/css">
#shadow1 {
	margin: 40px auto;
	width: 500px;
}
#shadow1 div, #shadow1 div div {
	-webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
	width: 480px;
	height: 303px;
	background: #fff;
}
#shadow1 div {
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	transform: rotate(2deg);
}
#shadow1 div div {
	-webkit-transform: rotate(-4deg);
	-moz-transform: rotate(-4deg);
	transform: rotate(-4deg);
}
#shadow1 div div img {
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	transform: rotate(2deg);
	margin: -30px 0 0 -10px;
	border: 4px solid #fff;
}
&lt;/style>

&lt;div id="shadow1">
	&lt;div>
		&lt;div>
			&lt;img src="Your Image Here" alt="Coolio" />
		&lt;/div>
	&lt;/div>
&lt;/div></pre>
<p></code></p>
<p>The code basically applies <code>box-shadow</code>s to the two <code>div</code>s which are already rotated a few degrees to the opposite directions. Finally the main image is being rotated back to zero degrees.</p>
<p>If someone would like to improve the code <span class="amp">&amp;</span> make it a little bit modular, I&#8217;d love to give him/her credit here.</p>
]]></content:encoded>
			<wfw:commentRss>http://erenemre.com/556/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cufón vs sIFR Which one is better?</title>
		<link>http://erenemre.com/295</link>
		<comments>http://erenemre.com/295#comments</comments>
		<pubDate>Sun, 15 Mar 2009 23:16:53 +0000</pubDate>
		<dc:creator>Eren Emre Kanal</dc:creator>
				<category><![CDATA[Web Technologies]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sIFR]]></category>
		<category><![CDATA[text replacement]]></category>

		<guid isPermaLink="false">http://www.erenemre.com/?p=295</guid>
		<description><![CDATA[I don&#8217;t know if you noticed that there is a new font replacement method called Cufón. Cufón simply does what sIFR does. But Cufón is more exciting because, it doesn&#8217;t use any browser plugins. As you know, sIFR needs Adobe Flash plugin to work. Cufón, on the other hand just needs JavaScript to be enabled. [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if you noticed that there is a new font replacement method called <a href="http://cufon.shoqolate.com/">Cufón</a>. Cufón simply does what <a href="http://novemberborn.net/sifr3">sIFR</a> does. But Cufón is more exciting because, it doesn&#8217;t use any browser plugins. As you know, sIFR needs Adobe Flash plugin to work. Cufón, on the other hand just needs JavaScript to be enabled.</p>
<p>Let&#8217;s compare these two powerful font replacement methods.<span id="more-295"></span></p>
<h2>Cufon</h2>
<p>As I said, Cufón is based on JavaScript. It has two individual parts. First, a font generator and second, a rendering engine. This means, if your visitors disable scripts, they <strong>will not</strong> able to see the font replacement. But, they&#8217;ll see all the Cufón based texts without any problem; <strong>as normal HTML texts</strong>.</p>
<p>Cufón supports all mainstream browsers:</p>
<ul>
<li>Internet Explorer 6, 7 and 8</li>
<li>Mozilla Firefox 1.5+</li>
<li>Safari 3+</li>
<li>Opera 9.5+</li>
<li>Google Chrome</li>
</ul>
<p>The only problem with its browser support is Safari 2 and Internet Explorer 5.5. But we all know, it is not a big deal. Also Cufón has some minor <a href="http://wiki.github.com/sorccu/cufon/known-bugs-and-issues">bugs</a>.</p>
<p>Implementing Cufón is super easy. First you have to download <code>cufon-yui.js</code>. Then you have to convert your font to VML paths by using Cufón&#8217;s online generator. And last, you call <code>cufon-yui.js</code> and generated font .js file in your document and call Cufón function (there is a little +1 step that is calling Cufón function in the footer for IE). That&#8217;s it.</p>
<p>Styling Cufón is also very easy. You may style Cufón based text by using CSS.</p>
<p>Cufón&#8217;s JavaScript&#8217;s file size is also exciting. <code>cufon-yui.js</code> is <strong>14Kb</strong>. For testing only, I used <a href="http://www.fontfont.com/downloads/">FF Mt</a> font, free from <strong>FontFont</strong>. I converted FF Mt to JavaScript via <a href="http://cufon.shoqolate.com/">Cufón&#8217;s generator</a> and it took only <strong>14Kb</strong>. So a very basic setup cost me only 2 JavaScript files: <strong>28Kb</strong>. This also means <strong>2 HTTP requests</strong>.</p>
<p><del datetime="2009-03-28T06:50:00+00:00">However, there is a big usability problem in Cufón. That is, users cannot select and copy the Cufón based texts. That&#8217;s a big usability issue but I think creators will do something about it. <em>(Thanks to Hank)</em></del></p>
<h2>sIFR 3 *</h2>
<p>I&#8217;ve used sIFR in many projects and it really helped me to make web sites more stylish. It&#8217;s like revolutionary.</p>
<p>sIFR also uses JavaScript and plus it stores font files in Adobe Flash. This means you have to have Adobe Flash to create font files. Or there is an online font converter for sIFR called <a href="http://www.sifrgenerator.com/">sIFR generator</a>. It helps you to convert <code>.ttf</code> files to <code>.swf</code> files.</p>
<p>Implementing sIFR to a web page is a little bit harder than Cufón. First you need to convert your font to a <code>.swf</code> file. Than you have 3 files to link on your page. These are: sIFR&#8217;s CSS file, sIFR&#8217;s JavaScript and a config file. The config file is optional, you may want to put config lines to the bottom of every page. And the next step is configuring your sIFR. To style sIFR texts, you can also use CSS. But this time you need to define CSS in the config file.</p>
<p>Let&#8217;s check sIFR&#8217;s file sizes. Again, I used FF Mt font. It took <strong>10Kb</strong>. Compressed <code>sIFR.js</code> took <strong>29Kb</strong>. And the CSS file for it took <strong>2Kb</strong>. That makes <strong>41Kb</strong>. 1.5 times bigger than Cufón. sIFR needs <strong>4 HTTP requests</strong>.</p>
<p><em>* Build r436</em></p>
<h2>Conclusion</h2>
<p>Cufón seems to be better. We all know, sIFR is older but it still eats more kilobytes and HTTP requests. Its rendering is also slower then Cufón. sIFR renders texts after  the page is loaded. So these factors help Cufón to take the lead.</p>
]]></content:encoded>
			<wfw:commentRss>http://erenemre.com/295/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

