| |—— div.slider-prev |—— div.slider-next |—— div.swiper-container | |—— div.swiper-wrapper | |—— div.swiper-slide |—— div.swiper-pagination-small
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- CMS vertical scroll based on width of individual image in gallery, Ends on the last one --> | |
<style> | |
.horizontal-trigger { | |
height: calc(100% - 100vh); | |
} | |
</style> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/ScrollTrigger.min.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setSelectedPageNav() { | |
var pathName = document.location.pathname; | |
if ($("nav ul li a") != null) { | |
var currentLink = $("nav ul li a[href='" + pathName + "']"); | |
currentLink.addClass("active"); | |
} | |
} | |
setSelectedPageNav(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
//Build your CSS. | |
$( '.l-main' ).addClass( 'clearfix' ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$('.view-slider .view-content').cycle({ | |
fx:'scrollLeft' | |
}); | |
var slideCheck = setInterval(function(){ | |
if($('.view-slider .view-content .views-row-last').is(':visible')) { | |
$('body').addClass('someclassname'); | |
} else { |