Spotlight

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 for the Widgetkit lightbox.

Features

  • Create nicely animated image overlays
  • Supports custom image or HTML content overlays
  • 5 different animation modes
  • Responsive design to fit all device resolutions
  • 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 a magnifier image. If you define a custom overlay, you can choose between different animations – fade, bottom, top, right and left.

How To Use

Use the HTML5 custom data attribute data-spotlight to 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.

latest articles

Demo

What to Plant this Spring? Create a Pollinator Paradise!

Pollinators are important because they serve as a critical link in the ecosystem. Learn more about how to create your own pollinator paradise

Read more
Demo

Native Bluebells are Coming

Every spring, thousands of Virginia Bluebells emerge from their long dormancy to create an amazing display of blue flowers along the banks of the Big Gunpowder Falls and Little Gunpowder Falls.

Read more
Demo

A Full Sun Rain Garden Design

We have a great fall planting project that will delight your eyes with color during the bleakest winter days and entice cheery winter songbirds to stop by for a visit and a snack!

Read more