Skip to content

Instantly share code, notes, and snippets.

View Nikolasgrizli's full-sized avatar
🏠
Working from home

Nikolay Evsukov Nikolasgrizli

🏠
Working from home
  • Ukraine
View GitHub Profile
@Nikolasgrizli
Nikolasgrizli / index.html
Created October 12, 2021 22:13 — forked from alasomlira/index.html
SwiperJS & YouTube
<div class="wrap">
<div class="wrap-inner">
<div class="swiper-outter">
<div id="video-swiper" class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="video-container">
<div class="yt-player" data-id="MxBRpWcXeOA"></div>
@Nikolasgrizli
Nikolasgrizli / !readme.md
Last active August 10, 2018 01:49
ST3 sync settings

Синхронизация настроек Sublime Text 3

$(window).scroll(function() {
var st = $(this).scrollTop() /10;
$(".object").css({
"transform" : "translate3d(0px, " + st + "%, .01px)",
"-webkit-transform" : "translate3d(0px, " + st + "%, .01px)"
});
});
@Nikolasgrizli
Nikolasgrizli / header_fadeout.js
Created March 19, 2018 05:43 — forked from agragregra/header_fadeout.js
jQuery Header Content FadeOut on Scroll
$(window).scroll(function() {
var st = $(this).scrollTop();
if($(window).height()+500 > $("header").height()) {
$("header .col-md-12").css({
"transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"-webkit-transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"opacity" : "1" - st/700
});
@Nikolasgrizli
Nikolasgrizli / jquery-active.js
Created March 19, 2018 05:38 — forked from agragregra/jquery-active.js
jQuery Active Menu
//Active menu
$("li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
@Nikolasgrizli
Nikolasgrizli / scroll-next.js
Created March 19, 2018 05:37 — forked from agragregra/scroll-next.js
jQuery Scroll To Next Section
$(".scroll-next").click(function() {
var cls = $(this).closest(".section").next().offset().top;
$("html, body").animate({scrollTop: cls}, "slow");
});
$(".city-input").keyup(function() {
filter(this);
});
function filter(element) {
var value = $(element).val().toLowerCase();
$("[data-filter]").each(function () {
var $this = $(this),
lower = $this.data("filter").toLowerCase();
if (lower.indexOf(value) > -1) {
$this.show();
@Nikolasgrizli
Nikolasgrizli / window-resize-end.js
Created March 19, 2018 05:34 — forked from agragregra/window-resize-end.js
Window resize-end function
//Resize Window
function onResize() {
};
var doit;
doit = setTimeout(onResize, 400);
window.onresize = function() {
clearTimeout(doit);
doit = setTimeout(onResize, 400);
};