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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
let animitems = document.querySelectorAll(".animaits");//создаем переменную в которую помещаем массив е элемнтов с //классом "._anim-items", которые в дальней шем подлежат анимированию | |
if(animitems.length > 0) { //проверяем массив на присутствие в нем элементов, и если | |
window.addEventListener("scroll", animOnScroll) //он массив не пуст, перебираем его | |
function animOnScroll(params){ | |
for(let i = 0; i < animitems.length; i++){ | |
let animItem = animitems[i]; //получаем в перменную каждый елемент массива | |
let animItemHeight = animItem.offsetHeight; //получаем в перемен высоту элемента с учётом вертикал. полей и границ в пикселях | |
let animateOffset = getCoords(animItem).top; //создаем переменную в которю получ. поцицию элементя верха окна браузера | |
let animStart = 4; //коефициент момента старта анимации |
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
module.exports = { | |
presets: [ | |
[ | |
'@babel/preset-env', | |
{ | |
targets: { | |
esmodules: true, | |
}, | |
}, | |
], |
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
$(window).scroll(function(){ | |
if ($(this).scrollTop() > 100) { | |
$('.scrollup').fadeIn(); | |
} else { | |
$('.scrollup').fadeOut(); | |
} | |
}); | |
$('.scrollup').click(function(){ | |
$("html, body").animate({ scrollTop: 0 }, 600); |
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 hightDetect() { | |
$(".main_head").css("height", $(window).height());//масштабирование на всю высоту окна браузера | |
}; | |
hightDetect(); //масштабирование при изменении размера экрана | |
$(window).resaize(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
$(function() { | |
$(".loaderInner").fadeOut(); // прокрутка анимации при загрузке стрницы | |
$(".loader").delay(400).fadeOut("slow"); | |
}); |
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
browserSync = require('browser-sync'), | |
concat = require('gulp-concat'),// Подключаем gulp-concat (для конкатенации файлов) | |
uglify = require('gulp-uglifyjs'),// Подключаем gulp-uglifyjs (для сжатия JS) | |
cssnano = require('gulp-cssnano'), // Подключаем пакет для минификации CSS | |
rename = require('gulp-rename');// Подключаем библиотеку для переименования файлов | |
del = require('del'),// Подключаем библеотеку для удаления файлов и папок | |
imagemin = require('gulp-imagemin'), | |
pngquant = require('imagemin-pngquant'), |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="css/libs.min.css"> | |
<link rel="stylesheet" href="css/main.css"> <!-- Подключаем CSS --> | |
</head> | |
<body> | |
NewerOlder