Hover effects for test class, glm gallery template
authorLaury GvR <laury@gaslightmedia.com>
Fri, 8 Apr 2016 17:32:47 +0000 (13:32 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 8 Apr 2016 17:32:47 +0000 (13:32 -0400)
css/app.css
nggallery/gallery-glmphotos-light-3.php
scss/plugins/_nextgen.scss

index f02a01c..b653e71 100644 (file)
@@ -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 {
index 91f368b..94a7950 100644 (file)
@@ -43,6 +43,11 @@ Follow variables are useable :
                     <?php
                     $imageTitle = !preg_match(';is\d{2,}-\d{10,}-\d{5,}$;', $image->alttext) ? $image->alttext: '';
                     ?>
+                        <div class="image_title">
+                            <h5 class="title">
+                                <?php if (!$image->hidden) { echo esc_attr($imageTitle); }?>
+                            </h5>
+                        </div>
                    <div class="photoTitle" title="<?php echo esc_attr($imageTitle) ?>"> 
                         <a href="<?php echo nextgen_esc_url($image->imageURL) ?>"
                         title="<?php echo esc_attr($image->description) ?>"
index e2b1e2e..937b322 100644 (file)
         border: none;
 
     }
+    .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*/
+        .ngg-fancybox img {
+            opacity: 1.0;
+            border-radius: 4px;
+        }
+        &:hover {
+            opacity: 0.75;
+            
+            .ngg-fancybox img {
+                border-radius: 30px;
+                -webkit-transition: border-radius 2s;
+                -moz-transition: border-radius 2s;
+                -o-transition: border-radius 2s;
+            }
+            
+            .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;
+            }
+            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;
+        }
+        .ngg-fancybox .image_title {
+            display: table;
+            height: auto;
+            left: 0;
+            opacity: 0;
+            position: absolute;
+            top: 0;
+            transition: all 0.5s ease 0s;
+            width: 100%;
+        }
+        .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;
+        }
+        .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;
+            h5 {
+                height:90px;
+                width:100%;
+            }
+        }
+        .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;
+        }
+        .ngg-fancybox:hover {
+            box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.75) inset;
+        }
+        .ngg-fancybox:hover .image_title {
+            opacity: 1;
+        }
+        .ngg-fancybox:hover .title {
+            transform: scale(1);
+        }
+    }
     ul {
         line-height: 1.2;
     }