Product Thumbnail Slider With Zoom Effect Jquery Codepen Better -

// Update active thumbnail UI function updateActiveThumbnail() $('.thumb-item').removeClass('active-thumb'); $('.thumb-item').eq(currentIndex).addClass('active-thumb'); // optional: scroll thumbnail into view horizontally const $activeThumb = $('.thumb-item').eq(currentIndex); if ($activeThumb.length) const containerLeft = $thumbWrapper.scrollLeft(); const containerWidth = $thumbWrapper.width(); const thumbLeft = $activeThumb.position().left; const thumbWidth = $activeThumb.outerWidth(); if (thumbLeft < containerLeft

: A "main image" container and a "thumbnail" list or carousel. "product-gallery" "main-image" "zoom-img" "large-image.jpg" data-zoom= "extra-large.jpg" "thumbnails" "thumb1.jpg" data-large= "large1.jpg" "thumb2.jpg" data-large= "large2.jpg" Use code with caution. Copied to clipboard jQuery Logic Thumbnail Click product thumbnail slider with zoom effect jquery codepen

); }

@media (min-width: 992px) .zoom-result right: -120%; width: 100%; height: 100%; const containerWidth = $thumbWrapper.width()

.thumbnail-track-wrapper::-webkit-scrollbar-thumb background: #9aaec0; border-radius: 10px; const thumbLeft = $activeThumb.position().left

CSA Editorial

Launched in Jan 2018, in partnership with Cyber Security Malaysia (an agency under MOSTI). CSA is a news and content platform focusing on key issues in cybersecurity in the region. CSA is targeted to serve the needs of cybersecurity professionals, IT professionals, Risk professionals and C-Levels who have an obligation to understand the impact of cyber threats.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *