<?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>Klipp og Lim - Blog &#187; Tips and Tricks</title>
	<atom:link href="http://klippoglim.no/blog/tag/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://klippoglim.no/blog</link>
	<description>News / Design / Motion / Technology</description>
	<lastBuildDate>Tue, 17 Aug 2010 14:31:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ultimate Full Screen Images Without Flash, iPhone and iPad Friendly</title>
		<link>http://klippoglim.no/blog/2010/06/ultimate-full-screen-images-without-flash-iphone-and-ipad-friendly/</link>
		<comments>http://klippoglim.no/blog/2010/06/ultimate-full-screen-images-without-flash-iphone-and-ipad-friendly/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://klippoglim.no/blog/?p=2128</guid>
		<description><![CDATA[Boom! There&#8217;s a new version in (gotochina)town, again. • Fully compatible with all browsers, including webkit on iPhone and iPad (without scroll-bugs) • Does not need to fully load images before calculating scaling (shorter loading time) • Letterboxes vertically oriented images • Standalone — no library needed and no conflicts needed • VERY light weight [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://klippoglim.no/blog/2010/06/ultimate-full-screen-images-without-flash-iphone-and-ipad-friendly/"><img class="alignnone size-full wp-image-2132" title="fullscreen" src="http://klippoglim.no/blog/wp-content/uploads/2010/06/fullscreen.jpg" alt="" width="650" height="462" /></a></p>
<p>Boom! There&#8217;s a new version in (gotochina)town, again.</p>
<p>• Fully compatible with all browsers, including webkit on iPhone and iPad (without scroll-bugs)<br />
• Does not need to fully load images before calculating scaling (shorter loading time)<br />
• Letterboxes vertically oriented images<br />
• Standalone — no library needed and no conflicts needed<br />
• VERY light weight (under 3KB for uncompressed css and javascript)<br />
• Easy to integrate into different gallery types (what additional examples would you like? Post your comment)<br />
• Seamless fallback to pure css solution in latest version of all major browsers</p>
<p>So here you go, see the comments in the source code for intructions:<br />
<br/><br />
<i><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/scaler-v3.zip">Download source</a></i> <i><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/scaler-v3/index.htm">View demo</a></i> <i><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/scaler-v3/index-jquery.htm">View transition demo</a></i></p>
]]></content:encoded>
			<wfw:commentRss>http://klippoglim.no/blog/2010/06/ultimate-full-screen-images-without-flash-iphone-and-ipad-friendly/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Fullscreen Images Reloaded</title>
		<link>http://klippoglim.no/blog/2009/05/fullscreen-images-reloaded/</link>
		<comments>http://klippoglim.no/blog/2009/05/fullscreen-images-reloaded/#comments</comments>
		<pubDate>Mon, 18 May 2009 19:55:52 +0000</pubDate>
		<dc:creator>Eirik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://klippoglim.no/blog/?p=1257</guid>
		<description><![CDATA[Since our last post about fullscreen scaling background without flash, we have received lots of feedback and suggestions for improvement. There has also been some further developement with implementing the gallery functionality we use at the GOTOCHINA-site. Now there&#8217;s a new version in town. To sum up some of the changes: • Mootools is used [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://klippoglim.no/blog/2009/05/fullscreen-images-reloaded/"><img class="alignnone size-full wp-image-1259" src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/05/fullscreen2.jpg" alt="fullscreen" width="650" height="462" /></a></p>
<p>Since our <a href="http://klippoglim.no/blog/2009/04/full-screen-images/">last post about fullscreen scaling background without flash</a>, we have received lots of feedback and suggestions for improvement. There has also been some further developement with implementing the gallery functionality we use at the <a href="http://ringvemedia.com/">GOTOCHINA-site</a>. Now there&#8217;s a new version in town.</p>
<p><span id="more-1257"></span> To sum up some of the changes:</p>
<p>• <a href="http://www.mootools.net">Mootools</a> is used as a base<br />
• You can now choose to letterbox vertically oriented images<br />
• The script now automatically turns on gallery-mode if a &#8220;navigation-element&#8221; is found (see code for explanation)<br />
• There&#8217;s been added some conditional settings, for example for preventing the ugly opera scroll bug</p>
<p>So here you go, see the comments in the source code for further explanations:</p>
<p><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/fullscreen2.zip">Download source</a></p>
<p><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/fullscreen2/index.htm">View demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://klippoglim.no/blog/2009/05/fullscreen-images-reloaded/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Fullscreen Image Scaling without Flash</title>
		<link>http://klippoglim.no/blog/2009/04/full-screen-images/</link>
		<comments>http://klippoglim.no/blog/2009/04/full-screen-images/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 14:34:00 +0000</pubDate>
		<dc:creator>Eirik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://klippoglim.no/blog/?p=1046</guid>
		<description><![CDATA[After our web designer Eirik launched the GOTOCHINA-website, there have been a lot of writings around on the web on how to do the full-screen image-effect. There have also been developers sending mails and wondering about how this technique both can center the image and scale proportionally. So therefore, in this post we’re going to [...]]]></description>
			<content:encoded><![CDATA[<p>After our web designer <a href="klippoglim.no/info/people/#eirik_backer">Eirik</a> launched the <a href="http://ringvemedia.com/">GOTOCHINA</a>-website, there have been a lot of writings around on the web on how to do the full-screen image-effect. There have also been developers sending mails and wondering about how this technique both can center the image and scale proportionally. So therefore, in this post we’re going to give you a explanation of how it all works.<br />
<span id="more-1046"></span><br />
</p>
<p><h4>Step 1:</h4>
<p>Unlike most full-size-background techniques, we want the image to remain relative to the center of the screen, and not to the default upper left corner coordinate. Example:</p>
<p><img src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/04/blogcrop2.jpg" alt="blogcrop" title="blogcrop" width="650" height="450" class="alignnone size-full wp-image-1051" /><br />
To do this, we start of by creating a holder that is 200% the size of our original area, and placing it equally outdented from the body on every side:</p>
<pre class="brush: css;">html,body{width:100%;height:100%;overflow:hidden} /*to give the #holder something to relate to and prevent scrollbars*/
#holder{position:absolute;width:200%;height:200%;top:-50%;left:-50%} /*with IE vertical centering-fix from http://www.jakpsatweb.cz/css/css-vertical-center-solution.html*/
#holder[id]{display:table} /*for standard-browsers*/</pre>
<p><img src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/04/blogholder2.jpg" alt="blogholder" title="blogholder" width="650" height="374" class="alignnone size-full wp-image-1052" />
</p>
<p></p>
<p><h4>Step 2:</h4>
<p>Inside this holder, we create a div that stays centered from the top:</p>
<pre class="brush: css;">#holder div{position:absolute;left:0;top:50%;width:100%} /*with IE-fix*/
#holder[id] div{display:table-cell;vertical-align:middle;position:static} /*for standard-browsers*/
*:first-child+html #holder div{position:absolute}/*force IE 7 back to position:absoulte*/
</pre>
<p><img src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/04/blogholderdiv2.jpg" alt="blogholderdiv" title="blogholderdiv" width="650" height="374" class="alignnone size-full wp-image-1060" />
</p>
<p></p>
<p><h4>Step 3:</h4>
<p>Now we can add our image and make it center, aligned to the parent div. The -ms-interpolation-mode-variable  is trick to force IE to anti-alias when resizing the image.</p>
<pre class="brush: css;">#holder img{position:relative;top:-50%;margin:0 auto;display:block;-ms-interpolation-mode: bicubic;width:100%}/*Setting width here creates a look-alike fallback for browsers without javascript*/</pre>
<p><img src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/04/blogholderimg2.jpg" alt="blogholderimg" title="blogholderimg" width="650" height="374" class="alignnone size-full wp-image-1061" />
</p>
<p></p>
<p><h4>Step 4:</h4>
<p>Since the body now is all covered with a huge image, we need to make a “new” body, where we can put our content:</p>
<pre class="brush: css;">#body{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;overflow:auto}</pre>
</p>
<p></p>
<p>
</p>
<h4>Step 5:</h4>
<p>Create a javascript file called scaler.js. To avoid the need of any “domready” or “onload” events, we are going to place this script just after our #body-div. The script:</p>
<pre class="brush: jscript;">(function(){
	var db=document.body;
	var img=document.getElementById('holder').getElementsByTagName('img')[0];

	var dbsize={}; //needed to store body size
	var imgsrc=img.src; //needed to store images src
	var keyStop=function(e){
		var e=window.event||e||{};
		var tag=e.target.tagName.toLowerCase();
		if(tag!='textarea'&amp;amp;&amp;amp;!(tag=='input'&amp;amp;&amp;amp;(e.target.type=='text'||e.target.type=='password'))){ //are the user not writing?
			if(e.keyCode==32||e.keyCode==39||e.keyCode==40){ //Did he press any of the &amp;quot;scrolling-keys&amp;quot;? (down, right, and space key)
				if(e.preventDefault)e.preventDefault();
				else e.returnValue=false;
			}
		}
	}

	if(this.addEventListener)window.addEventListener('keydown',keyStop,false);
	else window.attachEvent('onkeydown',keyStop);

	setInterval(function(){
		window.scrollTo(0,0);
		if(img.complete){ //check if image has loaded
			if(db.clientWidth!=dbsize.w||db.clientHeight!=dbsize.h||img.src!=imgsrc){ //check if size or img size has changed
				imgsrc=img.src; //store current src
				dbsize.w=db.clientWidth; //store current body width
				dbsize.h=db.clientHeight; //store current body height

				var newwidth=Math.round(dbsize.h*(img.offsetWidth/img.offsetHeight)); //calculate new width based on height

				img.style.width=(dbsize.w&amp;gt;newwidth?dbsize.w:newwidth)+'px'; //use the largest value of body-width and newwidht
				//and this is the real trick: if there's no specified height, the height is automaticly calculated relative to the with
			}
		}
	},300);
})();</pre>
</p>
<p></p>
<p>
</p>
<h4>Step 6:</h4>
<p>The HTML:</p>
<pre class="brush: xml;">&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
	&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html;charset=UTF-8&amp;quot; /&amp;gt;&amp;lt;title&amp;gt;Scaler&amp;lt;/title&amp;gt;
	&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;scaler.css&amp;quot; /&amp;gt;
	&amp;lt;meta http-equiv=&amp;quot;imagetoolbar&amp;quot; content=&amp;quot;no&amp;quot; /&amp;gt; &amp;lt;!--Prevent IEs anoying imgage toolbar--&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div id=&amp;quot;holder&amp;quot;&amp;gt;
		&amp;lt;div&amp;gt;&amp;lt;img alt=&amp;quot;&amp;quot; src=&amp;quot;your_photo.jpg&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div id=&amp;quot;body&amp;quot;&amp;gt;
		Your content
	&amp;lt;/div&amp;gt;
	&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;scaler.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;</pre>
</p>
<p><a class="more" href="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/04/scaler2.zip">Download source</a></p>
<p><a class="more" href="http://klippoglim.no/blog/wp-content/uploads/scaler/scaler.htm">View demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://klippoglim.no/blog/2009/04/full-screen-images/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>Useful Scripts for After Effects</title>
		<link>http://klippoglim.no/blog/2009/03/useful-scripts-for-after-effects/</link>
		<comments>http://klippoglim.no/blog/2009/03/useful-scripts-for-after-effects/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 10:37:17 +0000</pubDate>
		<dc:creator>Gustav</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[After Effects]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://klippoglim.no/blog/?p=900</guid>
		<description><![CDATA[The scripts-folder in After Effects is often something which is overlooked, by myself included. I&#8217;m almost embarrassed to say I just recently realized there&#8217;s a Scale Composition-function under scripts-menu which is incredibly handy. Apart from the default scripts, there&#8217;s also a very nice script package available for free from Adobe Exchange which I&#8217;m sure will [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://klippoglim.no/blog/images/aescripts_klm.jpg"><img class="alignnone" title="3D Illustration by Klipp og Lim" src="http://klippoglim.no/blog/images/aescripts_klm.jpg" alt="" /></a></p>
<p>The scripts-folder in After Effects is often something which is overlooked, by myself included. I&#8217;m almost embarrassed to say I just recently realized there&#8217;s a <em>Scale Composition</em>-function under scripts-menu which is incredibly handy. Apart from the default scripts, there&#8217;s also a very nice <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1698043" target="_blank">script package</a> available for free from Adobe Exchange which I&#8217;m sure will improve anyone&#8217;s workflow.</p>
<p>First off, there&#8217;s the <em>Active Shutter-script:</em> quite simply, this script lets you adjust the motion blur settings of your composition without having to go into comp-settings every time. Instead you get a panel that gives you sliders for shutter angle, shutter phase and a small scrubber. Very handy!</p>
<p>Then there&#8217;s the <em>Folder Setup-script:</em> this is great for making a template folder structure to keep your project organized. I usually always like to start off a project with organizing folders, such as &#8216;assets&#8217;, &#8216;comps&#8217;, &#8216;audio&#8217; etc, and this nifty script let&#8217;s you setup a project with just one click.<br />
<span id="more-900"></span><br />
Next is the <em>KeyEd-script</em> which is one of my favorites. For a long time I was looking for an easy way to set up my own keyboard shortcuts in After Effects, and finally I found the simple solution. This script lets you easily configure your own keyboard shortcuts, which to me is a blessing in terms of increasing workflow speed.</p>
<p>There&#8217;s also the <em>Kuler Shapes-script:</em> this enables you to import color palettes from <a href="http://kuler.adobe.com/">kuler.adobe.com</a> and you get the colors neatly placed within their own composition, and lastly there&#8217;s the <em>Launch Pad-script</em>, that can launch certain scripts on start-up.</p>
<p>The package is available for both CS4 and CS3, here are the links:</p>
<p>• <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1698043" target="_blank">CS4 Version</a><br />
• <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1242019">CS3 Version</a></p>
<p><a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1242019"> </a></p>
<p>While I&#8217;m at it, I&#8217;d also like to recommend the nice <a href="http://aescripts.com/bg-renderer/">AE Background Renderer</a>, which quite simply let&#8217;s you render stuff in the background so you can keep working in After Effects. Now that&#8217;s something — makes me wonder why all these scripts don&#8217;t ship with After Effects to begin with.</p>
<p>To install these; simply unpack the files into your Scripts-folder located within your After Effects folder and after you restart AE you&#8217;ll find them under the File &gt; Scripts-tab (or under the Window-tab if you&#8217;ve placed the scripts in the ScriptUI Panels-folder). Hope you find them useful! What scripts couldn&#8217;t you live without? Feel free to share your favorite scripts in the comments field.</p>
<p><em>— Tip by </em><a href="http://klippoglim.no/info/people/#gustav_espenes"><em>Gustav</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://klippoglim.no/blog/2009/03/useful-scripts-for-after-effects/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>After Effects Easing</title>
		<link>http://klippoglim.no/blog/2009/03/after-effects-easing/</link>
		<comments>http://klippoglim.no/blog/2009/03/after-effects-easing/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 17:08:34 +0000</pubDate>
		<dc:creator>Gustav</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[After Effects]]></category>
		<category><![CDATA[Animation]]></category>

		<guid isPermaLink="false">http://klippoglim.no/blog/?p=799</guid>
		<description><![CDATA[Now and again I&#8217;m asked if I could share a few After Effects tips and tricks, so here goes. As most animators know, good easing can really make an animation go from decent to great. If an object is supposed to appear somewhat realistic; it has to emulate physics to a certain extent. Pretty basic [...]]]></description>
			<content:encoded><![CDATA[<p>Now and again I&#8217;m asked if I could share a few After Effects tips and tricks, so here goes.</p>
<p>As most animators know, good easing can really make an animation go from decent to great. If an object is supposed to appear somewhat realistic; it has to emulate physics to a certain extent. Pretty basic animation knowledge, and a linear easing curve will rarely achieve that effect. After Effect&#8217;s in-built graph editor has gotten slightly better with time but I still find it difficult to make it act like I want it to, and it always seems to take a lot of time getting it right, especially if you&#8217;re trying to produce some quick drafts.</p>
<p><a href="http://ianhaigh.com/easeandwizz/"><img class="alignnone size-full wp-image-803" title="Ease and Wizz" src="http://d3617992.hosted418.moonrocketadmin.net/blog/wp-content/uploads/2009/03/ease-and-wizz-transp12.png" alt="Ease and Wizz" width="650" height="172" /></a><br />
<span id="more-799"></span><br />
One of the plugins I couldn&#8217;t have managed without would have to be the simple yet quite genius <a href="http://ianhaigh.com/easeandwizz/">Ease and Wizz-plugin</a> by Ian Haigh. Best part is, it&#8217;s free! Version 2.0 was also just released with support for animation curves as you can see in the <a href="http://ianhaigh.com/easeandwizz/screencast-curvaceous.html">screencast</a>. This little tool basically let&#8217;s you get access to every easing type in a mouseclick — just select the keyframes, select easing type and press apply and that&#8217;s all there is to it. Easing types like <em>bounce</em>, <em>elastic</em> and <em>back</em> are also included, which is great since these would usually take some more time to reproduce by using the graph editor.</p>
<p>The possibilities are endless. Just imagine using different easing types on the X/Y/Z-properties of a 3D-enabled object, camera positions and/or point of interest — different settings will yield completely different results. It won&#8217;t do much for opacity-related parameters, but for just about every other property it works magic. The plugin is very easy to install, it&#8217;ll make the workflow smoother and usually give a more professional looking result. For anyone new to After Effects or who haven&#8217;t heard about this one before;  <a href="http://ianhaigh.com/easeandwizz/#download">download</a>, install it and give it a try. The <em>Expo</em> (exponential) easing-type will pretty much work anywhere :)</p>
<p><em>Tip by <a href="http://klippoglim.no/info/people/#gustav_espenes">Gustav</a> — I&#8217;ll try to keep posting more similar tips and tricks in the time to come.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://klippoglim.no/blog/2009/03/after-effects-easing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
