Skip to content

Instantly share code, notes, and snippets.

View artemsheludko's full-sized avatar
💭
💙💛✌️

Artem Sheludko artemsheludko

💭
💙💛✌️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am artemsheludko on github.
  • I am artemsheludko (https://keybase.io/artemsheludko) on keybase.
  • I have a public key whose fingerprint is 752C BB14 468F 045A 60F1 16AA D822 5C3D 367B AB65

To claim this, I am signing this object:

@artemsheludko
artemsheludko / fixed-nav.js
Last active March 30, 2018 18:11
Fixed navigation when scroll (зафиксировать меню - навигацию при прокрутке страницы)
// Fixed header when scroll
var headerHeight = $("#js-header").height(),
navHeight = $("#js-nav-container").innerHeight();
$(document).on("scroll", function() {
var documentScroll = $(this).scrollTop();
if(documentScroll > headerHeight) {
$("#js-nav-container").addClass("fixed");
@artemsheludko
artemsheludko / smooth-scroll.js
Last active March 30, 2018 18:14
Smooth Scroll To Element ( Плавный прокрутка до элемента на странице)
$(function() {
$("#get-element").click(function(e) {
e.preventDefault(); // Disable link behavior
var someOffset = $("#js-plans").offset().top; // Calculate the distance to the element
$("html, body").animate({
scrollTop: someOffset
}, 500);
@artemsheludko
artemsheludko / index.html
Last active March 30, 2018 18:14
Start_html_for_jekyll
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}</title>
<meta name="description" content="{{ page.description }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:image" content="">
<link rel="shortcut icon" href="{{ "/assets/img/favicon/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
Plugins:
- Emmet
- Pug
- Sass
- AutoFileName
Theme:
@artemsheludko
artemsheludko / arrow-down-animated.html
Created April 12, 2018 18:30
Для примера.
// HTML
<div class="arrow-down" title="Scroll Down"><i class="fa fa-angle-double-down" aria-hidden="true"></i></div>
// SCSS
.arrow-down {
display: block;
position: absolute;
left: 50%;
// HTML
<div class="hero">
</div> <!-- End Hero -->
// SCSS
.hero {
position: relative;
width: 100%;
height: 100vh;
@artemsheludko
artemsheludko / dropcap.scss
Last active April 27, 2018 18:23
Большая заглавная буква на чистом CSS
.post-content::first-letter,
.post-content>p:first-of-type::first-letter {
display: block;
margin-top: 10px; // for firefox
margin-right: 10px;
float: left;
font-size: 3.5em;
color: #000;
line-height: 1;
}
@artemsheludko
artemsheludko / selection.css
Last active April 30, 2018 12:38
Выделить текст
::selection {
color: #000;
background: #fbd404;
}
@artemsheludko
artemsheludko / responsive_media.css
Last active April 30, 2018 12:38
Отзывчивые медиа файлы
img,
video,
audio {
max-width: 100%;
height: auto;
}