Skip to content

Instantly share code, notes, and snippets.

View VladivirYa's full-sized avatar

Vladimir VladivirYa

View GitHub Profile
/*
*img src SVG changing the fill color
*/
//html
<img class="responsive-img img-svg" src="img/partners/korf.svg" alt="Korf">
//css
.img-svg path {
/*!
* 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
*/
@VladivirYa
VladivirYa / magnific-animation-preloader
Last active January 25, 2017 15:23
Magnific Gallery with Animation & Preloader | http://codepen.io/agragregra/pen/OMNLQJ
SASS:
.mfp-ready .mfp-figure
opacity: 0
.mfp-zoom-in
.mfp-figure, .mfp-iframe-holder .mfp-iframe-scaler
opacity: 0
transition: all 0.3s ease-out
transform: scale(0.95)
&.mfp-bg, .mfp-preloader
opacity: 0
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@VladivirYa
VladivirYa / mousewheel-icon.html
Last active December 21, 2016 21:00
Mouse Wheel Animation CSS Icon | http://jsfiddle.net/cmajo9h6/
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
function heightDetect(){
$('.main_head').css('height', $(window).height());
};
heightDetect()
$(window).resize(function(){
heightDetect()
});
<div class="parallax-window" data-parallax="scroll" data-image-src="/path/to/image.jpg"></div>
$('.parallax-window').parallax({imageSrc: '/path/to/image.jpg'});
.parallax-window {
min-height: 400px;
background: transparent;
}
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;