Skip to content

Instantly share code, notes, and snippets.

View frontend-coder's full-sized avatar
💭
WordPress, layout templates, smile and wine

frontend-coder frontend-coder

💭
WordPress, layout templates, smile and wine
View GitHub Profile
@frontend-coder
frontend-coder / 1 вариант портфолио работ
Last active July 17, 2019 06:08
верстка блока портфолио со сплывающим попапом с увеличенным изображением #css #html
HTML
<!-- начало первого блока портфолио-->
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<div class="portfolio">
<img src="images/Freelance.jpg" alt="">
<div class="portfolio-block">
<a href="#" class="portfolio-item"> <i class="fa fa-search-plus" aria-hidden="true"></i>
<!--пытаюсь сделать всплывающее окно галеры -->
@frontend-coder
frontend-coder / Как прижать блок к низу
Last active July 17, 2019 06:53
Прижимаю контейнер к низу браузера #css #html
HTML
<div id="container">
<div id="header">
<!-- Содержимое шапки -->
</div>
<div id="body">
<!-- Содержимое центральной части -->
</div>
<div id="footer">
<!-- Содержимое нижнего блока -->
@frontend-coder
frontend-coder / style.css
Last active July 17, 2019 07:23
В прозрачном окне с непрозрачным текстом размещена картинка, которое слайдится быстрее, чем вся страница #css #html
.main-name {
background-color: transparent;
height: 280px;
position: relative;
}
.fixed-fon {
background: url(../img/slide_box.jpg) top center no-repeat;
-webkit-background-size: cover;
@frontend-coder
frontend-coder / множественный фон контейнера
Last active July 17, 2019 07:31
Как сделать множественный фон контейнера #css
.block-fon5 {
background:
url('../images/cherry.png') no-repeat 85% 80%,
url('../images/mouse.png') no-repeat left top,
url('../images/5JjnJ8bUnP.png') no-repeat center center,
url('../images/css-karkas.png') no-repeat;
-webkit-background-size: 100px 100px, auto, 50px 50px, auto;
background-size: 100px 100px, auto, 50px 50px, auto;
}
@frontend-coder
frontend-coder / Включение HTML5 для IE9 и меньше
Last active July 17, 2019 08:43
Включение HTML5 для IE9 и меньше #js
<!--[if lt IE 9]>
<script>
var e = ("article,aside,figcaption,figure,footer,header,hgroup,nav,section,time").split(',');
for (var i = 0; i < e.length; i++) {
document.createElement(e[i]);
}
</script>
<![endif]-->
@frontend-coder
frontend-coder / equalHeight-Set.js
Last active July 17, 2019 08:44
Настройки для плагина equalHeight #js #jquery
function heightses() {
$(".program-item").height("auto").equalHeights();
}heightses();
$(window).resize(function() {
heightses();
});
@frontend-coder
frontend-coder / Change logo color on scroll
Last active July 17, 2019 08:50
Change logo color on scroll #html #css #js
<div class="row grey ">
<h1 class="logo black startLogo">Logo</h1>
</div>
<div class="row blue">
<h1 class="logo white altLogo">Logo</h1>
</div>
<div class="row purple">
@frontend-coder
frontend-coder / прозраный фон
Last active July 17, 2019 08:51
делаем прозрачный фон для всех браузеров #css
.prozrachnost {
opacity:0.5;
filter:alpha(opacity=50);
-moz-opacity:0.5;
background-color:#000000;
width:340px;
height:1500px;
position:absolute;
top:0px;
left:0px;
@frontend-coder
frontend-coder / gist:e2d75e348069986c2265cee44184d8cb
Last active July 17, 2019 09:12
Как установить разную длину пробелов при верстке #html
ладно если серьезно то вот &thinsp; - тонкий пробел, &ensp - пробел длиной в букву N, &emsp; - пробел длиной в букву M
@frontend-coder
frontend-coder / script.js
Last active July 17, 2019 09:25
Cоздание портфолио с использованием magnific-popup #jquery
// галерея всплывающая
$(".portfolio-item").each(function(e){
var th = $(this);
th.attr("href", "#portfolio-image-" + e)
.find(".portfolio-popup")
.attr("id", "portfolio-image-" + e);
});
$(".portfolio-item").magnificPopup({
mainClass: 'my-mfp-zoom-in',
removalDelay:300,