牛津大学教授谭保罗来郑授课

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.

Features

  • Create nicely animated image overlays
  • Supports custom image or HTML content overlays
  • 5 different animation modes
  • Built with the latest jQuery version
  • Works with Joomla and WordPress

Examples

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 - fade, bottom, top, right and left.

Spotlight Image Spotlight Image
Custom Overlay (Bottom)
Spotlight Image
Custom Overlay (Right)
Spotlight Image
Spotlight Image
Spotlight Image
Custom Overlay (Top)
Spotlight Image
Custom Overlay (Left)

How To Use

Use the HTML5 custom data attribute data-spotlightto activate the spotlight.

<a data-spotlight="on" href="/mypage.html">
	<img src="/image.jpg" width="180" height="120" alt="" />
</a>

To create a custom overlay use a div element with the CSS class overlay. You can set the effect parameter to the data attribute. For example:

<a data-spotlight="effect:bottom;" href="/mypage.html">
	<img src="/image.jpg" width="180" height="120" alt="" />
	<div class="overlay">Custom Overlay</div>
</a>

You can set the effect parameter to fade, bottom, top, right and left.

联系我们

公众号

  • 01 商会地址:天津经济技术开发区南海路156号19栋204
  • 02 办公电话:022-58173255
  • 04 商会邮箱:这个 E-mail 受所垃圾邮件程序保护,您需要启用 JavaScript 才能查看。
  • 03 秘书长:刘卫红 13821005562 / 17502253368
  • 05 副秘书长:南山 13821638589 张本领 18622159233