.icon:hover {
fill: red;
}
<svg class="icon">
...
</svg>
jQuery(function($) {
$(window).scroll(function(){
if($(this).scrollTop()>185){
$('.app-header').addClass('app-header--active');
}
else if ($(this).scrollTop()<185){
$('.app-header').removeClass('app-header--active');
}
});
});
.app-header--active .menu {float:right;}
.app-header--active .block {display:none;}
$(function() {
const worksSlider = $('[data-slider="slick"]');
/* Filter
=====================*/
let filter = $("[data-filter]");
filter.on("click", function(event) {
event.preventDefault();
changeBlocksVisibility($(this).data('filter'))
});
});
$().ready(() => changeBlocksVisibility("female"));
function changeBlocksVisibility(cat = 'all') {
if(cat == 'all') {
$("[data-cat]").removeClass("hide");
} else {
$("[data-cat]").each(function() {
let workCat = $(this).data('cat');
if(workCat != cat) {
$(this).addClass('hide');
} else {
$(this).removeClass('hide');
}
});
}
}
.accordion__item {
margin-bottom: 10px;
border: 1px solid #e5e5e5;
max-height: 46px;
transition: max-height .2s ease-out;
overflow: hidden;
}
.accordion__item.active {
max-height: 500px;
transition: max-height .5s ease-in;
}
body {
max-width: 1400px;
margin: 0 auto;
overflow-y: scroll;
}
overflow-y: hidden;
$this.toggleClass("active");
$this.find('.accordion__content').slideToggle(500); // 500 — скорость появления\исчезновения
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; }
html, body { -ms-overflow-style: none; overflow: -moz-scrollbars-none; }