<div class="attribute-labels">
    <div class="title">Размер взрослой одежды</div>
    <ul class="panels">
        <li class="panels-item">
           <input type="checkbox" checked>
           <div class="item-title">размеры в наличии</div>
           <i></i>
            <div class="labels instock">
                <span class="swatch swatch-label swatch-cl_ad_m-l green-mark " title="M/L" data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_m-l green-mark " title="M/L" data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_m-l green-mark " title="M/L" data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_m-l green-mark " title="M/L" data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_m-l green-mark " title="M/L" data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_xl-xxl green-mark " title="XL/XXL"
                    data-value="cl_ad_xl-xxl">XL/XXL</span>
                <span class="swatch swatch-label swatch-cl_ad_xs-s green-mark " title="XS/S"
                    data-value="cl_ad_xs-s">XS/S</span>
            </div>
        </li>
        <li class="panels-item">
            <input type="checkbox" checked>
            <div class="item-title">размеры под заказ</div>
            <i></i>
            <div class="labels onbackorder">
                <span class="swatch swatch-label swatch-cl_ad_m-l blue-mark " title="M/L"
                    data-value="cl_ad_m-l">M/L</span>
                <span class="swatch swatch-label swatch-cl_ad_xl-xxl blue-mark " title="XL/XXL"
                    data-value="cl_ad_xl-xxl">XL/XXL</span>
                <span class="swatch swatch-label swatch-cl_ad_xs-s blue-mark " title="XS/S"
                    data-value="cl_ad_xs-s">XS/S</span>
            </div>
        </li>
    </ul>
</div>
.attribute-labels,
.attribute-labels ul,
.attribute-labels .labels,
.attribute-labels ul li i:before,
.attribute-labels ul li i:after {
  transition: all 1.55s ease-in-out;
}

.attribute-labels {
    width: 100%;
    border: 1px solid red;
    margin-top: 10px;
    color: rgb(68,68,68);
    box-shadow: 0 10px 0 0 rgba(68,68,68,0.2) inset;
}

.attribute-labels .title {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 42px;
    letter-spacing: 1px;
    font-weight: 600;
}

.attribute-labels .item-title {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    display: inline-block;
    color: rgb(68, 68, 68);
    margin: 0;
    cursor: pointer;
}

.attribute-labels .panels {
    margin-left: 120px;
    padding: 0;
    list-style: none;
}

.attribute-labels .panels-item {
    position: relative;
    padding: 0;
    margin: 0;
    padding-bottom: 4px;
    padding-top: 18px;
    border-top: 1px dotted #dce7eb;
}

.panels-item i {
    display: inline-block;
    transform: translate(12px, 0);
    margin-top: 16px;
    right: 0;
}

.panels-item i:before,
.panels-item i:after {
    content: "";
    position: absolute;
    background-color: rgb(68,68,68);
    width: 2px;
    height: 7px;
    top: -8px;
    /* transition: all 0.5s ease-in-out; */
}

.panels-item i:before {
    transform: translate(-2px, 0) rotate(-45deg);
}

.panels-item i:after {
    transform: translate(2px, 0) rotate(45deg);
}

.panels-item input[type=checkbox] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
}

.panels-item input[type=checkbox]:checked~.labels {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
  transform: translate(0, 50%);
}

ul li:nth-of-type(1) {
/*     animation-delay: 0.5s; */
}

ul li:nth-of-type(2) {
/*     animation-delay: 0.75s; */
}

.attribute-labels .labels {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    padding: 5px;
  margin-left: -10px;
    /* transition: all 0.5s ease-in-out; */
}

.attribute-labels .swatch {
    margin: 5px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.