From 535ba1ad324a230174bfa62b38bd9ee4fe1f05dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Berk=20Ba=C5=9Fo=C4=9Flu?= Date: Mon, 4 Mar 2024 10:36:00 -0500 Subject: [PATCH] Updated the carousel. --- assets/js/main.js | 68 ----------------------------------------------- index.html | 6 ++--- 2 files changed, 3 insertions(+), 71 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 762724b..cd942ed 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -164,74 +164,6 @@ } }); - /** - * Skills animation - */ - let skilsContent = select('.skills-content'); - if (skilsContent) { - new Waypoint({ - element: skilsContent, - offset: '80%', - handler: function(direction) { - let progress = select('.progress .progress-bar', true); - progress.forEach((el) => { - el.style.width = el.getAttribute('aria-valuenow') + '%' - }); - } - }) - } - - /** - * Porfolio isotope and filter - */ - window.addEventListener('load', () => { - let portfolioContainer = select('.portfolio-container'); - if (portfolioContainer) { - let portfolioIsotope = new Isotope(portfolioContainer, { - itemSelector: '.portfolio-item', - layoutMode: 'fitRows' - }); - - let portfolioFilters = select('#portfolio-flters li', true); - - on('click', '#portfolio-flters li', function(e) { - e.preventDefault(); - portfolioFilters.forEach(function(el) { - el.classList.remove('filter-active'); - }); - this.classList.add('filter-active'); - - portfolioIsotope.arrange({ - filter: this.getAttribute('data-filter') - }); - }, true); - } - - }); - - /** - * Initiate portfolio lightbox - */ - const portfolioLightbox = GLightbox({ - selector: '.portfolio-lightbox' - }); - - /** - * Portfolio details slider - */ - new Swiper('.portfolio-details-slider', { - speed: 400, - autoplay: { - delay: 5000, - disableOnInteraction: false - }, - pagination: { - el: '.swiper-pagination', - type: 'bullets', - clickable: true - } - }); - /** * Initiate Pure Counter */ diff --git a/index.html b/index.html index e1b90a8..8a1093d 100644 --- a/index.html +++ b/index.html @@ -34,7 +34,7 @@
- @@ -67,7 +67,7 @@