Please see this fiddle.
https://jsfiddle.net/fn6eevew/1/
There are 6 text displayed in the above fiddle. I want displayed only 3 text. So i removed the 3 span tags. see the below fiddle.
https://jsfiddle.net/fn6eevew/2/
After the 3 span a long gap will be showed. What is the reason?? How can i fix this?? I can't understand.
@-webkit-keyframes rotateWord {
0% { opacity: 0; -webkit-animation-timing-function: ease-in; -webkit-transform: translateY(-200px) translateZ(300px) rotateY(-120deg); }
5% { opacity: 1; -webkit-animation-timing-function: ease-out; -webkit-transform: translateY(0px) translateZ(0px) rotateY(0deg); }
6% { text-shadow: 0px 0px 0px rgba(255,255,255,1); color: #000; }
17% { opacity: 1; text-shadow: 0px 0px 0px rgba(255,255,255,1); color: #000; }
20% { opacity: 0; }
100% { opacity: 0; }
}
You need to reduce the number of seconds that the animation runs for also. I have turned it down to 9 in the example below, You had it still at 18:
I also removed the
nth-child
that are no longer needed in the JSFIDDLEHow does this work for you?