<div class="content clearfix">
<p>The Widgetkit Spotlight allows you to add an overlay to your images which fades or moves in on mouse hover. The overlay can be an image or HTML content. The default magnifier spotlight is a perfect match to be used with a lightbox.</p>
<br />
<h2>Examples</h2>
<p>If no custom overlay is set the default spotlight fades in an overlay with an magnifier image. If you define a custom overlay you can choose between different animations - <code>fade</code>, <code>bottom</code>, <code>top</code>, <code>right</code> and <code>left</code>.</p>
<br />
<div><a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image1_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="on"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image1.jpg" alt="Spotlight Image" width="180" height="120" /> </a> <a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image2_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="effect:bottom;"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image2.jpg" alt="Spotlight Image" width="180" height="120" /> <span class="overlay" style="position: absolute; visibility: visible; display: block; width: 180px; height: auto; left: 0px; bottom: -60px;">Custom Overlay (Bottom)</span> </a> <a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image3_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="effect:right;"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image3.jpg" alt="Spotlight Image" width="180" height="120" /> <span class="overlay" style="position: absolute; visibility: visible; display: block; width: 180px; height: 120px; right: -180px; top: 0px; bottom: 0px;">Custom Overlay (Right)</span> </a></div>
<div><a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image4_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="effect:fade;"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image4.jpg" alt="Spotlight Image" width="180" height="120" /> <span class="overlay remove-padding" style="position: absolute; visibility: visible; display: none; width: 180px; height: 120px; opacity: 0; top: 0px; left: 0px;"><img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image4_spotlight.jpg" alt="Spotlight Image" width="180" height="120" /></span> </a> <a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image5_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="effect:top;"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image5.jpg" alt="Spotlight Image" width="180" height="120" /> <span class="overlay" style="position: absolute; visibility: visible; display: block; width: 180px; height: auto; left: 0px; top: -40px;">Custom Overlay (Top)</span> </a> <a data-lightbox="transitionIn:elastic;transitionOut:elastic;" class="spotlight" href="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image6_lightbox.jpg" style="position: relative; overflow: hidden;" data-spotlight="effect:left;"> <img src="http://www.yootheme.com/images/yootheme/widgetkit/lightbox/image6.jpg" alt="Spotlight Image" width="180" height="120" /> <span class="overlay" style="position: absolute; visibility: visible; display: block; width: 180px; height: 120px; left: -180px; top: 0px; bottom: 0px;">Custom Overlay (Left)</span> </a></div>
</div>
<p> </p>
<h2>Features</h2>
<ul class="check">
<li>Create nicely animated image overlays</li>
<li>Supports custom image or HTML content overlays</li>
<li>5 different animation modes</li>
<li>Responsive design to fit all device resolutions</li>
<li>Built with the latest jQuery version</li>
<li>Works with Joomla and WordPress</li>
</ul>
<p> </p>
<h2>How To Use</h2>
<p>Use the HTML5 custom data attribute <code>data-spotlight</code> to activate the spotlight.</p>
<pre>&lt;a data-spotlight="on" href="/mypage.html"&gt;
	&lt;img src="/image.jpg" width="180" height="120" alt="" /&gt;
&lt;/a&gt;</pre>
<p>To create a custom overlay use a div element with the CSS class <code>overlay</code>. You can set the effect parameter to the data attribute. For example:</p>
<pre>&lt;a data-spotlight="effect:bottom;" href="/mypage.html"&gt;
	&lt;img src="/image.jpg" width="180" height="120" alt="" /&gt;
	&lt;span class="overlay"&gt;Custom Overlay&lt;/span&gt;
&lt;/a&gt;</pre>
<p>You can set the effect parameter to <code>fade</code>, <code>bottom</code>, <code>top</code>, <code>right</code> and <code>left</code>.</p>