.element{transition:opacity 0.8s ease;display:inline-block}