.setAttribute('value', 'red')
const input = ...;
input.on('input', e => e.target.setAttribute('data-value', e.target.value));
input[data-value=red] {
}
.nav-menu li
:.nav-menu li {
display: inline-block;
width: 100%;
}
var loc = window.location.hash;
if (loc != "") {
var href = loc;
var target = $('.content-fade').find(href);
$('.content-fade-menu a').removeClass('active');
$('.content-fade-menu a[href="'+href +'"]').addClass('active');
$('.content-fade .content-fade-panel').hide();
$(target).fadeIn('fast');
}
<div class="parent">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
.parent {
width: 170px;
text-align: center;
}
.child {
display: inline-block;
width: 50px;
height: 50px;
background: black;
border-radius: 50%;
}
Посмотреть вживую..parent {
width: 170px;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.child {
width: 50px;
height: 50px;
background: black;
border-radius: 50%;
}
Поиграться. .details{...}
.slick-center .details{
opacity: 0;
visibility: hidden;
}
.details{
...
-webkit-transition: all 0.3s ease; /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6 */
transition: all 0.3s ease; /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+ */
}
.slick-center .details{
opacity: 0;
visibility: hidden;
}