From: Laury GvR Date: Fri, 8 Apr 2016 17:32:47 +0000 (-0400) Subject: Hover effects for test class, glm gallery template X-Git-Tag: v1.0.0^2~86 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=42baf788f5403c94d5fe2b88c6356718cec610e0;p=WP-Themes%2Fgaslightmedia.git Hover effects for test class, glm gallery template --- diff --git a/css/app.css b/css/app.css index f02a01c..b653e71 100644 --- a/css/app.css +++ b/css/app.css @@ -6882,6 +6882,90 @@ h2#block-title { border: 1px dotted rgba(0, 0, 0, 0.7); } #gallery-glmphotos-light-3 .ngg-gallery-thumbnail-box { border: none; } +#gallery-glmphotos-light-3 .ngg-gallery-thumbnail { + background: #fff none repeat scroll 0 0; + cursor: pointer; + float: left; + list-style-type: none; + padding: 10px; + position: relative; + margin-bottom: 10px; + /*Hover states*/ } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox img { + opacity: 1.0; + border-radius: 4px; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail:hover { + opacity: 0.75; + transition: all 0.5s ease 0s; + transform: scale(1.025); + -webkit-transform: scale(1.025); + -moz-transform: scale(1.025); + -o-transform: scale(1.025); + border-radius: 30px; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail:hover .ngg-fancybox img { + border-radius: 30px; + -webkit-transition: border-radius 2s; + -moz-transition: border-radius 2s; + -o-transition: border-radius 2s; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail:hover .ngg-fancybox .title { + border-top-left-radius: 30px; + border-top-right-radius: 30px; + -webkit-transition: border-radius 2s; + -moz-transition: border-radius 2s; + -o-transition: border-radius 2s; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .image_title { + display: table; + height: auto; + left: 0; + opacity: 0; + position: absolute; + top: 0; + transition: all 0.5s ease 0s; + width: 100%; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .title::before { + content: '\26B2'; + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -o-transform: rotate(45deg); + font-size: 28px; + color: #fff; + opacity: 0.5; + display: block; + line-height: 36px; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .image_title { + width: 100%; + height: auto; + padding: 10px; + position: absolute; + top: 0; + left: 0; + display: table; + /*Hover effect - default state*/ + opacity: 0; + transition: all 0.5s; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .image_title h5 { + height: 90px; + width: 100%; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .title { + color: #fff; + background: rgba(0, 0, 0, 0.75); + text-transform: uppercase; + font-size: 14px; + text-align: center; + /*Vertical center align*/ + display: table-cell; + vertical-align: middle; + /*Hover effect - default state*/ + transform: scale(0.2); + transition: all 0.25s; + border-top-left-radius: 4px; + border-top-right-radius: 4px; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox:hover { + box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.75) inset; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox:hover .image_title { + opacity: 1; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox:hover .title { + transform: scale(1); } #gallery-glmphotos-light-3 ul { line-height: 1.2; } #gallery-glmphotos-light-3 ul li a { diff --git a/nggallery/gallery-glmphotos-light-3.php b/nggallery/gallery-glmphotos-light-3.php index 91f368b..94a7950 100644 --- a/nggallery/gallery-glmphotos-light-3.php +++ b/nggallery/gallery-glmphotos-light-3.php @@ -43,6 +43,11 @@ Follow variables are useable : alttext) ? $image->alttext: ''; ?> +
+
+ hidden) { echo esc_attr($imageTitle); }?> +
+