Wichtige Überschrift

About Me

heading effect on hovering.

Klicken Sie auf den unteren Button, um den Inhalt von zu laden.

Inhalt laden

as markup for the heading f.e.:
<span data-hover="Wichtige">Wichtige </span>    <span data-hover="Überschrift">Überschrift</span>


.change-on-hover .av-special-heading-tag {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    z-index: 111;
    width: 100%;
    margin: 0 auto !important;
    overflow: hidden;
}

.change-on-hover .av-special-heading-tag span {
font-weight: bold;
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
}

.change-on-hover .av-special-heading-tag span:first-child {
    color: #fff
}
.change-on-hover .av-special-heading-tag span:nth-child(2) {
    color: #ffb400
}


.change-on-hover .av-special-heading-tag span:first-child::before,
.change-on-hover .av-special-heading-tag span:nth-child(2)::before {
    position: absolute;
    content: attr(data-hover);
}

.change-on-hover .av-special-heading-tag span:first-child::before {
    top: 105%
}

.change-on-hover .av-special-heading-tag span:nth-child(2)::before {
    bottom: 105%
}

.flex_column:hover .change-on-hover .av-special-heading-tag span {
    text-shadow: 2px 2px 3px #333;
}

.change-on-hover:hover .av-special-heading-tag span:first-child {
    transform: translate3d(0, -105%, 0);
    color: #ffb400
}

.change-on-hover:hover .av-special-heading-tag span:nth-child(2) {
    transform: translate3d(0, 105%, 0);
    color: #fff
}

custom-class to the heading alb itself: change-on-hover

it is not important that the data-hover is identical to the normal content!