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
//Плавная Popup-галерея | |
$('.mfp-galery').each(function(){ | |
$(this).magnificPopup({ | |
delegate: 'a', //По каким тегам перечисление фото | |
mainClass: 'mfp-zoom-in', | |
type: 'image', | |
tLoading: '', | |
gallery:{ |
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
//Плавнаый скрол к нужному элементу | |
$(".your_class_name").click(function() { //при нажатии на какой класс сработает | |
$("html, body").animate({ | |
scrollTop : $(".sec_1").offset().top //к какому класу прийдет | |
}, 800); //скорость перехода | |
}); |
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
/* | |
Начисления значений числам | |
В Html к тому тегу в котором нужно начислить, прописать "data-count='число к которому нужно начислить'" | |
*/ | |
$(".sec_1").waypoint(function() { //Дойдя до какого класа | |
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
<a href="#" class="toggle-mnu hidden-lg"><span></span></a> |
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
/* | |
* Replace all SVG images with inline SVG | |
*/ | |
$('.img_svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data) { |