This file contains hidden or 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
| <div class="pagewrap"> | |
| <nav> | |
| <ul> | |
| <li><a href="#one">One</a></li> | |
| <li><a href="#two">Two</a></li> | |
| <li><a href="#three">Three</a></li> | |
| </ul> | |
| <div class="toggle-icon"> | |
| <span></span> |
This file contains hidden or 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
| /*! | |
| * Simple jQuery Equal Heights | |
| * | |
| * Copyright (c) 2013 Matt Banks | |
| * Dual licensed under the MIT and GPL licenses. | |
| * Uses the same license as jQuery, see: | |
| * http://docs.jquery.com/License | |
| * | |
| * @version 1.5.1 | |
| */ |
This file contains hidden or 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() { | |
| var st = $(this).scrollTop() /10; | |
| $(".object").css({ | |
| "transform" : "translate3d(0px, " + st + "%, 0px)", | |
| "-webkit-transform" : "translate3d(0px, " + st + "%, 0px)" | |
| }); | |
| }); |
This file contains hidden or 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
| // Ссылка на страницу скрипта https://github.com/agragregra/gulp-lesson/blob/master/gulpfile.js | |
| // Автор Алексей agragregra https://github.com/agragregra | |
| var gulp = require('gulp'), // Подключаем Gulp | |
| sass = require('gulp-sass'), //Подключаем Sass пакет, | |
| browserSync = require('browser-sync'), // Подключаем 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'), // Подключаем библиотеку для удаления файлов и папок |