<?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>Design Gala &#187; image</title>
	<atom:link href="http://designgala.com/tag/image/feed/" rel="self" type="application/rss+xml" />
	<link>http://designgala.com</link>
	<description>Web Usability, Web Technology, User Experience</description>
	<lastBuildDate>Sat, 11 Jun 2011 02:38:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Basic jQuery Tutorial: Animate div and image</title>
		<link>http://designgala.com/basic-jquery-tutorial-animate-div-and-image/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=basic-jquery-tutorial-animate-div-and-image</link>
		<comments>http://designgala.com/basic-jquery-tutorial-animate-div-and-image/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:41:35 +0000</pubDate>
		<dc:creator>Mukesh Chapagain</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=2015</guid>
		<description><![CDATA[In this article, I will be showing you how to animate image and div. By animation, I just mean basic animation. This is a basic tutorial. So, please don&#8217;t expect it to be...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.designgala.com/wp-content/uploads/2010/02/jquery-logo.png" alt="" width="268" height="268" class="alignleft size-full wp-image-2007" /></p>
<p>In this article, I will be showing you how to animate image and div. </p>
<p>By animation, I just mean basic animation. This is a basic tutorial. So, please don&#8217;t expect it to be so complex animation :). It will simply be increasing the width of the image and div with animate effect.</p>
<p><span id="more-2015"></span></p>
<p>This is a base for starting animation with jQuery.<br />
<a href="http://www.cssbreak.com/examples/animate/"><br />
VIEW DEMO</a> </p>
<p>Here we go.</p>
<p>I have the following HTML tags for image and buttons:</p>
<div class="wp_syntax">
<div class="code">
<pre class="html" style="font-family:monospace;">&lt;img src=&quot;lilies.jpg&quot; /&gt;
&lt;br /&gt;&lt;br /&gt;
&nbsp;
&lt;button&gt;Large&lt;/button&gt;
&lt;button&gt;Small&lt;/button&gt;</pre>
</div>
</div>
<p>Here is the jQuery code to animated the image:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#large&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;30%&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#small&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;200px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p>In the above code:</p>
<p>- When the &#8216;Large&#8217; button is clicked, the image size is increased by 30% with a speed of 1500 ms. The first parameter in the animate() function is CSS property and the second parameter is the number determining how long the animation will run.</p>
<p>- When the &#8216;Small&#8217; button is clicked, the image size is fixed to be 200px. 1500 is the time for the animation to ru in millisecond.</p>
<p><strong>Similarly, for DIV.</strong></p>
<p>Here is the HTML code with div and buttons:</p>
<div class="wp_syntax">
<div class="code">
<pre class="html" style="font-family:monospace;">&lt;div class=&quot;content&quot;&gt;
	My Div
&lt;/div&gt;
&lt;br /&gt;
&nbsp;
&lt;button&gt;Large&lt;/button&gt;
&lt;button&gt;Small&lt;/button&gt;</pre>
</div>
</div>
<p>Here is the jQuery code to animated the div:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#large2&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.content&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;50%&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#small2&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.content&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;300px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p>- When the &#8216;Large&#8217; button is clicked, the div is expanded to 50% of its width.<br />
- When the &#8216;Small&#8217; button is clicked, the div is fixed to 300px of width.<br />
- 1500 is the time for the animation to run. You can change it according to you need and wish.<br />
<a href="http://www.cssbreak.com/examples/animate/"><br />
VIEW DEMO</a> </p>
<p>Cheers,</p>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/basic-jquery-tutorial-animate-div-and-image/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>jQuery: Create Stunning Slideshow with Cycle Plugin</title>
		<link>http://designgala.com/jquery-create-stunning-slideshow-with-cycle-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-create-stunning-slideshow-with-cycle-plugin</link>
		<comments>http://designgala.com/jquery-create-stunning-slideshow-with-cycle-plugin/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 20:15:54 +0000</pubDate>
		<dc:creator>Mukesh Chapagain</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=1485</guid>
		<description><![CDATA[You can easily create stunning and very effective image slideshow with the jQuery Cycle Plugin. You don&#8217;t need to write long and difficult programming code. Just a few lines of code will be...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designgala.com/wp-content/uploads/2010/01/13-07_jquery-cycle.jpg"><img class="alignleft size-full" src="http://www.designgala.com/wp-content/uploads/2010/01/13-07_jquery-cycle.jpg" alt="" width="550" height="398" /></a></p>
<p style="text-align: justify;">You can easily create stunning and very effective image slideshow with the jQuery Cycle Plugin. You don&#8217;t need to write long and difficult programming code. Just a few lines of code will be enough.</p>
<p><a href="http://www.cssbreak.com/examples/slideshow-cycle/" target="_blank">View Demo</a> | <a href="http://www.cssbreak.com/examples/slideshow-cycle.zip" target="_blank">Download Code</a></p>
<p>You need to have jQuery library and the jQuery Cycle plugin.</p>
<p><a href="http://docs.jquery.com/Downloading_jQuery" target="_blank">Download jQuery Library</a> | <a href="http://malsup.com/jquery/cycle/download.html" target="_blank">Download jQuery Cycle Plugin</a></p>
<blockquote><p>The jQuery Cycle Plugin is a slideshow plugin that supports many different types of transition effects. It supports pause-on-hover, auto-stop, auto-fit, before/after callbacks, click triggers and much more.</p></blockquote>
<blockquote><p>The Cycle Plugin provides many options for customizing your slideshow. The default option values can be overridden by passing an option object to the cycle method.</p></blockquote>
<p><a href="http://malsup.com/jquery/cycle/options.html" target="_blank">Here is the list of options</a></p>
<p>There are many effects that can be used with jQuery Cycle Plugin. You can find them all <a href="http://malsup.com/jquery/cycle/browser.html" target="_blank">here</a>. I have used some effects and created a demo.</p>
<p><a href="http://www.cssbreak.com/examples/slideshow-cycle/" target="_blank">View Demo</a> | <a href="http://www.cssbreak.com/examples/slideshow-cycle.zip" target="_blank">Download Code</a>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/jquery-create-stunning-slideshow-with-cycle-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

