{"id":92,"date":"2011-06-08T11:33:45","date_gmt":"2011-06-08T11:33:45","guid":{"rendered":"http:\/\/www.dermatologue.com\/?page_id=92"},"modified":"2012-06-06T14:19:19","modified_gmt":"2012-06-06T14:19:19","slug":"spotlight","status":"publish","type":"page","link":"https:\/\/www.dermatologue.com\/?page_id=92","title":{"rendered":"Spotlight"},"content":{"rendered":"<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>\n<h2>Features<\/h2>\n<ul class=\"check\">\n<li>Create nicely animated image overlays<\/li>\n<li>Supports custom image or HTML content overlays<\/li>\n<li>5 different animation modes<\/li>\n<li>Responsive design to fit all device resolutions<\/li>\n<li>Built with the latest jQuery version<\/li>\n<li>Works with Joomla and WordPress<\/li>\n<\/ul>\n<h2>Examples<\/h2>\n<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 &#8211; <code>fade<\/code>, <code>bottom<\/code>, <code>top<\/code>, <code>right<\/code> and <code>left<\/code>.<\/p>\n<div>\n\t<a data-spotlight=\"on\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image1_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image1.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><br \/>\n\t<\/a><br \/>\n\t<a data-spotlight=\"effect:bottom;\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image2_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image2.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/p>\n<div class=\"overlay\">Custom Overlay (Bottom)<\/div>\n<p>\t<\/a><br \/>\n\t<a data-spotlight=\"effect:right;\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image3_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image3.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/p>\n<div class=\"overlay\">Custom Overlay (Right)<\/div>\n<p>\t<\/a>\n<\/div>\n<div>\n\t<a data-spotlight=\"effect:fade;\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image4_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image4.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/p>\n<div class=\"overlay remove-padding\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image4_spotlight.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/div>\n<p>\t<\/a><br \/>\n\t<a data-spotlight=\"effect:top;\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image5_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image5.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/p>\n<div class=\"overlay\">Custom Overlay (Top)<\/div>\n<p>\t<\/a><br \/>\n\t<a data-spotlight=\"effect:left;\" data-lightbox=\"transitionIn:elastic;transitionOut:elastic;\" href=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image6_lightbox.jpg\"><br \/>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/yootheme\/widgetkit\/lightbox\/image6.jpg\" width=\"180\" height=\"120\" alt=\"Spotlight Image\" \/><\/p>\n<div class=\"overlay\">Custom Overlay (Left)<\/div>\n<p>\t<\/a>\n<\/div>\n<h2>How To Use<\/h2>\n<p>Use the HTML5 custom data attribute <code>data-spotlight<\/code> to activate the spotlight.<\/p>\n<pre>&lt;a data-spotlight=\"on\" href=\"\/mypage.html\"&gt;\r\n\t&lt;img src=\"\/image.jpg\" width=\"180\" height=\"120\" alt=\"\" \/&gt;\r\n&lt;\/a&gt;<\/pre>\n<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>\n<pre>&lt;a data-spotlight=\"effect:bottom;\" href=\"\/mypage.html\"&gt;\r\n\t&lt;img src=\"\/image.jpg\" width=\"180\" height=\"120\" alt=\"\" \/&gt;\r\n\t&lt;div class=\"overlay\"&gt;Custom Overlay&lt;\/div&gt;\r\n&lt;\/a><\/pre>\n<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>\n","protected":false},"excerpt":{"rendered":"<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. Features Create nicely animated image overlays Supports custom image or HTML content [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-92","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/pages\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":5,"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/pages\/92\/revisions"}],"predecessor-version":[{"id":580,"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=\/wp\/v2\/pages\/92\/revisions\/580"}],"wp:attachment":[{"href":"https:\/\/www.dermatologue.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}