From 601a37e5be9d1321cdf1c20330c4fc2ede39754f Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 8 Apr 2016 16:28:01 -0400 Subject: [PATCH] Hover effects for portfolio --- css/app.css | 348 ++++++++++++------------ js/app.js | 14 +- js/custom/pageSetup.js | 14 +- nggallery/gallery-glmphotos-light-3.php | 123 +++------ parts/statements.php | 2 +- scss/plugins/_nextgen.scss | 55 ++-- 6 files changed, 253 insertions(+), 303 deletions(-) diff --git a/css/app.css b/css/app.css index b653e71..927555d 100644 --- a/css/app.css +++ b/css/app.css @@ -6728,158 +6728,165 @@ h2#block-title { height: auto; padding: 0 0.625rem 1.25rem; } -.gallery .ngg-gallery-thumbnail, .gallery .ngg-gallery-thumbnail-box { - float: none; } -.gallery li a img { - display: block; - width: 100%; - border-radius: 4px; } -.gallery .ngg-gallery-thumbnail, .gallery .ngg-gallery-thumbnail-box { - float: none; } -.gallery .ngg-album-compact h4 .ngg-album-desc { - height: auto; - font-family: Georgia, Cambria, "Times New Roman", Times, serif; - font-weight: 400; } -.gallery .ngg-album-compact .album-meta-wrapper h4 a { - font-style: normal; } -.gallery .album-meta-wrapper { - display: block; - height: 54px; - margin-bottom: 20px; } -.gallery .ngg-glmalbums { - margin: 10px 0; } -.gallery .ngg-fancybox .image_overlay { - cursor: pointer; - -webkit-transition: background 0.3s linear; - -moz-transition: background 0.3s linear; - -ms-transition: background 0.3s linear; - -o-transition: background 0.3s linear; - transition: background 0.3s linear; - background-image: url("../assets/portfolio-overlay.png"); - background-size: cover; - background-repeat: no-repeat; - background-position: center; } -.gallery .ngg-fancybox:hover img { - opacity: 0.3; } -.gallery .ngg-fancybox .photoTitle { - color: #0568b3; - font-weight: bold; - max-width: 220px; } -.gallery .ngg-fancybox .photoHead { - color: white; - font-style: normal; - text-decoration: none; - max-width: 220px; } -.gallery .ngg-fancybox img { - margin: 0 !important; } -.gallery #homepage_problem_solvers { - text-align: center; } -.gallery .ngg-galleryoverview { - padding: 20px; } -.gallery .ngg-gallery-thumbnail span { - max-width: 220px; - max-height: 75px; } -.gallery .ngg-gallery-thumbnail-box { - border: 1px solid lightgrey; - border-radius: 4px; - color: #0568b3; - background: white; - font-family: times; - font-size: 18px; - /* font-style: italic;*/ } -.gallery .image_overlay img { - width: 100%; } -.gallery #fancybox-title-inside { - background: #0568b3; - border-radius: 4px; - color: white; - font-family: times; - font-size: 16px; } - .gallery #fancybox-title-inside a { - text-decoration: underline; +.gallery { + margin: 0 auto; } + .gallery .ngg-gallery-thumbnail, .gallery .ngg-gallery-thumbnail-box { + float: none; } + .gallery li a img { + display: block; + width: 100%; + border-radius: 4px; } + .gallery .ngg-gallery-thumbnail, .gallery .ngg-gallery-thumbnail-box { + float: none; } + .gallery .ngg-album-compact h4 .ngg-album-desc { + height: auto; + font-family: Georgia, Cambria, "Times New Roman", Times, serif; + font-weight: 400; } + .gallery .ngg-album-compact .album-meta-wrapper h4 a { + font-style: normal; } + .gallery .album-meta-wrapper { + display: block; + height: 54px; + margin-bottom: 20px; } + .gallery .ngg-glmalbums { + margin: 10px 0; } + .gallery .ngg-fancybox .image_overlay { + cursor: pointer; + -webkit-transition: background 0.3s linear; + -moz-transition: background 0.3s linear; + -ms-transition: background 0.3s linear; + -o-transition: background 0.3s linear; + transition: background 0.3s linear; + background-image: url("../assets/portfolio-overlay.png"); + background-size: cover; + background-repeat: no-repeat; + background-position: center; } + .gallery .ngg-fancybox:hover img { + opacity: 0.3; } + .gallery .ngg-fancybox .photoTitle { + color: #0568b3; + font-weight: bold; + max-width: 220px; } + .gallery .ngg-fancybox .photoHead { color: white; - font-style: italic; } -.gallery .ngg-fancybox { - margin: 0 !important; } -.gallery .ngg-fancybox img { - padding: 0; - margin: none auto !important; - width: 100%; - border: 0; } -.gallery .slideshowlink { - display: none; } -.gallery #fancybox-title { - position: absolute; - top: 0; - padding-top: 10px; - padding-bottom: 5px; } - .gallery #fancybox-title #fancybox-title-inside { - padding: 2px 0; } -.gallery #fancybox-outer, .gallery #fancybox-left, .gallery #fancybox-right { - padding-top: 40px; } + font-style: normal; + text-decoration: none; + max-width: 220px; } + .gallery .ngg-fancybox img { + margin: 0 !important; } + .gallery #homepage_problem_solvers { + text-align: center; } + .gallery .ngg-galleryoverview { + padding: 20px; } + .gallery .ngg-gallery-thumbnail span { + max-width: 220px; + max-height: 75px; } + .gallery .ngg-gallery-thumbnail-box { + border: 1px solid lightgrey; + border-radius: 4px; + color: #0568b3; + background: white; + font-family: times; + font-size: 18px; + /* font-style: italic;*/ } + .gallery .image_overlay img { + width: 100%; } + .gallery #fancybox-title-inside { + background: #0568b3; + border-radius: 4px; + color: white; + font-family: times; + font-size: 16px; } + .gallery #fancybox-title-inside a { + text-decoration: underline; + color: white; + font-style: italic; } + .gallery .ngg-fancybox { + margin: 0 !important; } + .gallery .ngg-fancybox img { + padding: 0; + margin: none auto !important; + width: 100%; + border: 0; } + .gallery .slideshowlink { + display: none; } + .gallery #fancybox-title { + position: absolute; + top: 0; + padding-top: 10px; + padding-bottom: 5px; } + .gallery #fancybox-title #fancybox-title-inside { + padding: 2px 0; } + .gallery #fancybox-outer, .gallery #fancybox-left, .gallery #fancybox-right { + padding-top: 40px; } /* Styles for specific templates */ -#gallery-glmphotos-light-3 .special a { - background-position: 50% 50%; - background-repeat: no-repeat; - background-origin: border-box; - display: inline-block; - width: 100%; - height: 270px; - border-width: 135px; - border-color: transparent; - border-radius: 100%; - -moz-border-radius: 100%; - -webkit-border-radius: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition: 0.5s ease; - -moz-transition: 0.5s ease; - -ms-transition: 0.5s ease; - -o-transition: 0.5s ease; - transition: 0.5s ease; } -#gallery-glmphotos-light-3 .special a:hover { - border-width: 0; - border-color: rgba(0, 0, 0, 0.5); } -#gallery-glmphotos-light-3 .special .one { - border-style: solid; } -#gallery-glmphotos-light-3 .special .two { - border-style: dashed; } -#gallery-glmphotos-light-3 .special .three { - border-style: dotted; } -#gallery-glmphotos-light-3 .special .yon { - border: 50px solid rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .goo { - border: 50px dashed rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .rok { - border: 50px dotted rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .ryk { - border: 50px double rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .yon:hover { - border: 1px solid rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .goo:hover { - border: 1px dashed rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .rok:hover { - border: 1px dotted rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .ryk:hover { - border: 1px double rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x7, #gallery-glmphotos-light-3 .special .x8, #gallery-glmphotos-light-3 .special .x9 { - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; } -#gallery-glmphotos-light-3 .special .x7 { - border: 50px solid rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x8 { - border: 50px dashed rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x9 { - border: 50px dotted rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x7:hover { - border: 1px solid rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x8:hover { - border: 1px dashed rgba(0, 0, 0, 0.7); } -#gallery-glmphotos-light-3 .special .x9:hover { - border: 1px dotted rgba(0, 0, 0, 0.7); } +#gallery-glmphotos-light-3 .special { + clear: both; + max-width: 270px; + margin: 0 auto; + text-align: center; } + #gallery-glmphotos-light-3 .special a { + background-position: 50% 50%; + background-repeat: no-repeat; + background-origin: border-box; + display: inline-block; + width: 100%; + height: 270px; + border-width: 135px; + border-color: transparent; + border-radius: 100%; + -moz-border-radius: 100%; + -webkit-border-radius: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: 0.5s ease; + -moz-transition: 0.5s ease; + -ms-transition: 0.5s ease; + -o-transition: 0.5s ease; + transition: 0.5s ease; } + #gallery-glmphotos-light-3 .special a:hover { + border-width: 0; + border-color: rgba(0, 0, 0, 0.5); } + #gallery-glmphotos-light-3 .special .one { + border-style: solid; } + #gallery-glmphotos-light-3 .special .two { + border-style: dashed; } + #gallery-glmphotos-light-3 .special .three { + border-style: dotted; } + #gallery-glmphotos-light-3 .special .yon { + border: 50px solid rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .goo { + border: 50px dashed rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .rok { + border: 50px dotted rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .ryk { + border: 50px double rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .yon:hover { + border: 1px solid rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .goo:hover { + border: 1px dashed rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .rok:hover { + border: 1px dotted rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .ryk:hover { + border: 1px double rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x7, #gallery-glmphotos-light-3 .special .x8, #gallery-glmphotos-light-3 .special .x9 { + border-radius: 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; } + #gallery-glmphotos-light-3 .special .x7 { + border: 50px solid rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x8 { + border: 50px dashed rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x9 { + border: 50px dotted rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x7:hover { + border: 1px solid rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x8:hover { + border: 1px dashed rgba(0, 0, 0, 0.7); } + #gallery-glmphotos-light-3 .special .x9:hover { + 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 { @@ -6890,29 +6897,30 @@ h2#block-title { padding: 10px; position: relative; margin-bottom: 10px; - /*Hover states*/ } + /*Hover states*/ + transition: all 0.1s ease 0s; } #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox img { opacity: 1.0; - border-radius: 4px; } - #gallery-glmphotos-light-3 .ngg-gallery-thumbnail:hover { + border-radius: 4px; + transition: all 1s ease 0s; + -webkit-transition: border-radius 1s ease 0s; + -moz-transition: border-radius 1s ease 0s; + -o-transition: border-radius 1s ease 0s; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox:hover img { opacity: 0.75; + border-radius: 30px; 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; } + transition: border-radius 1s ease 0s; + -webkit-transition: border-radius 1s ease 0s; + -moz-transition: border-radius 1s ease 0s; + -o-transition: border-radius 1s ease 0s; } + #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox:hover .title { + border-top-left-radius: 30px; + border-top-right-radius: 30px; + transition: border-radius 1s ease 0s; + -webkit-transition: border-radius 1s ease 0s; + -moz-transition: border-radius 1s ease 0s; + -o-transition: border-radius 1s ease 0s; } #gallery-glmphotos-light-3 .ngg-gallery-thumbnail .ngg-fancybox .image_title { display: table; height: auto; @@ -6956,8 +6964,8 @@ h2#block-title { display: table-cell; vertical-align: middle; /*Hover effect - default state*/ + transition: all 0.5s ease 0s; 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 { @@ -6972,7 +6980,7 @@ h2#block-title { font-family: "Lato"; } #gallery-glmphotos-light-3 .photoTitle { width: 90%; - text-transform: uppercase; + text-transform: capitalize; padding: 10px 0; margin: 8px auto 0; } #gallery-glmphotos-light-3 .photoTitle:hover a { diff --git a/js/app.js b/js/app.js index 44d92cd..9091171 100644 --- a/js/app.js +++ b/js/app.js @@ -32,14 +32,18 @@ $(document).ready(function () { }); var c = 0; - var statements = ['Impress', 'Work', 'Appeal', 'Last', 'Amaze']; + // statement slider code. + var statements = ['Engage', 'Compel', 'Amaze', 'Deliver']; slider = $('#statement-slider'); - i = -1; - + i = 0; + var statement = statements[0]; + if (slider.text() != statement) { + slider.text(statement); + } var slideshow = setInterval(function(){ - var val = statements[++i] || statements[i=0]; + statement = statements[++i] || statements[i=0]; slider.fadeOut(function(){ - $(this).text(val).fadeIn(1000); + $(this).text(statement).fadeIn(1000); }); },3100); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 2437660..8f13597 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -23,14 +23,18 @@ $(document).ready(function () { }); var c = 0; - var statements = ['Impress', 'Work', 'Appeal', 'Last', 'Amaze']; + // statement slider code. + var statements = ['Engage', 'Compel', 'Amaze', 'Deliver']; slider = $('#statement-slider'); - i = -1; - + i = 0; + var statement = statements[0]; + if (slider.text() != statement) { + slider.text(statement); + } var slideshow = setInterval(function(){ - var val = statements[++i] || statements[i=0]; + statement = statements[++i] || statements[i=0]; slider.fadeOut(function(){ - $(this).text(val).fadeIn(1000); + $(this).text(statement).fadeIn(1000); }); },3100); }); diff --git a/nggallery/gallery-glmphotos-light-3.php b/nggallery/gallery-glmphotos-light-3.php index 94a7950..b8fd5b2 100644 --- a/nggallery/gallery-glmphotos-light-3.php +++ b/nggallery/gallery-glmphotos-light-3.php @@ -14,12 +14,36 @@ Follow variables are useable : ?> + +