.accordion {
    max-height: 0;
    overflow: hidden;

    transition: max-height .8s cubic-bezier(0, 1, 0, 1) -.1s;
}

.accordion.active {
    transition-timing-function: cubic-bezier(0.5, 0, 1, 0); 
	transition-delay: 0s;
    max-height: 9999px !important;
}

.end {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0),rgba(255, 255, 255, 1));
    position: relative;
    height: 40px;
    width: 100%;
    margin-top: -40px;
    transition-property: opacity;
    transition-duration: 0.5s;
    opacity: 1;
}

.accordion.active + .end {
    transition-duration: 0.5s;
    opacity: 0;
}