Skip to content

Instantly share code, notes, and snippets.

.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;
@Takerrim
Takerrim / Double bg
Last active July 30, 2018 13:43
double bg
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
@Takerrim
Takerrim / Scroll page
Created July 29, 2018 08:10
Scroll page
$('.up').click(function(){
$('html,body').animate({scrollTop: 0}, 500);
});
$(document).scroll(function(){
if($(document).scrollTop()>0) {
$('.up').fadeIn();
} else {
$('.up').fadeOut();
}
});
@Takerrim
Takerrim / Acc jQuery ver.2
Last active August 1, 2018 18:51
Acc jQuery ver.2
$('.wrapper h1').click(function(){
$(this).next("p").slideToggle()
.siblings("p:visible").slideUp();
});
@Takerrim
Takerrim / Popup gallery
Last active July 24, 2018 09:05
Popup gallery
@Takerrim
Takerrim / Accordion jQuery
Created July 22, 2018 07:02
Accordion jQuery
$('.header').click(function(){
$(this).toggleClass('active');
$(this).next().slideToggle();
})
@Takerrim
Takerrim / Scale pic
Last active July 29, 2018 08:11
Scale pic
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