This file contains 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
.slide-toggle-enter-active, | |
.slide-toggle-leave-active { | |
transition: all 0.4s; | |
max-height: 220px; | |
} | |
.slide-toggle-enter, | |
.slide-toggle-leave-to { | |
opacity: 0; | |
max-height: 0px; | |
overflow: hidden; |
This file contains 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
header | |
height: 100vh | |
background: url(../images/bg-header.jpg) no-repeat center/cover | |
position: relative | |
width: 100% | |
&:before | |
content: '' | |
position: absolute | |
top: 0 | |
right: 0 |
This file contains 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
$('.up').click(function(){ | |
$('html,body').animate({scrollTop: 0}, 500); | |
}); | |
$(document).scroll(function(){ | |
if($(document).scrollTop()>0) { | |
$('.up').fadeIn(); | |
} else { | |
$('.up').fadeOut(); | |
} | |
}); |
This file contains 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
$('.wrapper h1').click(function(){ | |
$(this).next("p").slideToggle() | |
.siblings("p:visible").slideUp(); | |
}); |
This file contains 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
$(function() { | |
$('.item').magnificPopup({ | |
type: 'image', | |
gallery : { | |
enabled : true | |
} | |
}); | |
}); |
This file contains 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
$('.header').click(function(){ | |
$(this).toggleClass('active'); | |
$(this).next().slideToggle(); | |
}) |
This file contains 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 img | |
width: 378px | |
height: 550px | |
transition: all 0.5s ease | |
&:hover | |
transform: scale(1.05) translateY(-13px) | |
box-shadow: inset 0 0 0 23px #53ea93 |