Browse Source

modified portfolio section

tags/v1.0.0
Themefisher Dev 4 years ago
parent
commit
138531c732
3 changed files with 16 additions and 11 deletions
  1. 8
    0
      assets/css/style.css
  2. 7
    10
      assets/js/script.js
  3. 1
    1
      layouts/partials/portfolio.html

+ 8
- 0
assets/css/style.css View File

display: inline-block; display: inline-block;
} }


.btn {
cursor: pointer;
}

.btn.focus,
.btn:focus {
box-shadow: none;
}


figure { figure {
margin: 0; margin: 0;

+ 7
- 10
assets/js/script.js View File

$('.preloader').fadeOut(100); $('.preloader').fadeOut(100);
}); });


/* ========================================================================= */
/* lazy load initialize
/* ========================================================================= */


// lazy load initialize
const observer = lozad(); // lazy loads elements with default selector as ".lozad" const observer = lozad(); // lazy loads elements with default selector as ".lozad"
observer.observe(); observer.observe();




/* ========================================================================= */ /* ========================================================================= */
/* Magnific popup /* Magnific popup
/* ========================================================================= */ /* ========================================================================= */
fixedContentPos: false, fixedContentPos: false,
fixedBgPos: true fixedBgPos: true
}); });

/* ========================================================================= */ /* ========================================================================= */
/* Portfolio Filtering Hook /* Portfolio Filtering Hook
/* ========================================================================= */ /* ========================================================================= */
function filter(){
var containerEl = document.querySelector('.shuffle-wrapper'); var containerEl = document.querySelector('.shuffle-wrapper');
if (containerEl) { if (containerEl) {
var Shuffle = window.Shuffle; var Shuffle = window.Shuffle;
myShuffle.filter(input.value); myShuffle.filter(input.value);
} }
}); });
}}
$(window).on('scroll', function () {
filter();
});
}

/* ========================================================================= */ /* ========================================================================= */
/* Testimonial Carousel /* Testimonial Carousel
/* ========================================================================= */ /* ========================================================================= */
autoplaySpeed: 4000 autoplaySpeed: 4000
}); });




/* ========================================================================= */ /* ========================================================================= */
/* animation scroll js /* animation scroll js
/* ========================================================================= */ /* ========================================================================= */

+ 1
- 1
layouts/partials/portfolio.html View File

<div class="col-lg-4 shuffle-item" <div class="col-lg-4 shuffle-item"
data-groups="[{{range $index, $element:= .categories }}{{if ne $index 0}},{{end}}&quot;{{. | urlize}}&quot;{{ end }}]"> data-groups="[{{range $index, $element:= .categories }}{{if ne $index 0}},{{end}}&quot;{{. | urlize}}&quot;{{ end }}]">
<div class="portfolio-block mb-4"> <div class="portfolio-block mb-4">
<img class="img-fluid lozad" data-src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
<img class="img-fluid" src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
<div class="caption"> <div class="caption">
<a class="search-icon image-popup" data-effect="mfp-with-zoom" href="{{ .image | relURL }}" <a class="search-icon image-popup" data-effect="mfp-with-zoom" href="{{ .image | relURL }}"
data-lightbox="image-1"> data-lightbox="image-1">

Loading…
Cancel
Save