Tekst animations

Deze tekst gaat van rechts naar links

GLOWING TEXT

Deze tekstkleur veranderd op hover

Deze tekst vult zich op hover

John Doe John Doe John Doe Web Developer

PHP:

				
					
				
			

JS:

				
					
				
			

CSS

				
					/* text scroll rtl */
.text-scroll-rtl {
  transform: translateX(100%);
  animation: scroll-rtl 20s linear infinite;
}
@keyframes scroll-rtl {
    from {
    transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* text roll in window */
.roll {
    height: 25px;
	overflow: hidden;
	width: 100%;
}

.roll ul,
.roll li{
    height: auto !important;
    margin: 0px;
    padding: 0px;
    width: 100%;
    list-style: none;
}

.roll li {
    margin: 0px 0 1px 0;
    height: auto !important;
    padding: 0px 0 0px 0;
    font-size: 30px !important;
    text-transform: uppercase;
    width: 100%;
}

.roll ul {
    animation: titleflip 10s ease-in-out infinite;
}

@keyframes titleflip {
    0%, 20% {
        transform: translate(0px, 0px);
    }
    20%,
    40% {
        transform: translate(0px, -25px);
    }
    40%,
    60% {
        -webkit-transform: translate(0px, -50px);
    }
    60%,
    80% {
        transform: translate(0px, -75px);
    }
    80%,
    100% {
        transform: translate(0px, -100px);
    }
    100%,
    0% {
        transform: translate(0px, 0px);
    }
}

/* glowing text */
.glowing-text h2 {
    font-weight: bold !important;
    font-size: 50px;
    color: #0000ff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
      text-shadow: 0 0 30px #b3b3ff;
    }
    to {
      text-shadow: 0 0 35px #8080ff, 0 0 25px #6666ff;
    }
}

/*text color on hover*/
.text-color-hover h2 {
    position: relative;
    display: inline-block;
    color: #808080;
    overflow: hidden;
    background: linear-gradient(to right, black, black 50%, #808080 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100%;
    transition: background-position 750ms linear;
}

.text-color-hover h2:hover {
    background-position: 0 100%;
}

/*text fill on hover */
.text-fill-hover h2 {
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px #000;
}

.text-fill-hover h2:before {
    content: "Deze tekst vult zich op hover";
    position: absolute;
    color: #000;
    width: 0%;
    height: 100%;
    overflow: hidden;
    transition: 750ms;
    border-right: 5px solid #000
}

.text-fill-hover h2:hover:before {
    width: calc(100% + 10px);
}

/* Open text hover effect */
h2.open-text-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: transparent;
    text-transform: uppercase;
}
    
h2.open-text-hover:hover span:nth-child(1) {
    transform: translateY(-10px);
}
    
h2.open-text-hover:hover span:nth-child(2) {
    transform: translateY(10px);
}

h2.open-text-hover:hover span:nth-child(3) {
    opacity: 1;
    transition: opacity 700ms ease;
}
    
h2.open-text-hover span:nth-child(1),
h2.open-text-hover span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    color: #000;
    transition: 0.5s;
    overflow: hidden;
}
    
h2.open-text-hover span:nth-child(1) {
    clip-path: polygon(0 0, 100% 0%, 100% 50%, 0 50%);
}

h2.open-text-hover span:nth-child(2) {
clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

h2.open-text-hover span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 350ms ease;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    width: 100%;
    text-align: center;
    line-height: 100%;
}