I have currently set up a sequence of 5 frames, where each frame consists of 3 animations that gradually fade into the next frame over time.
My challenge is figuring out how to loop the animation after completing the last sequence (in this case, #frame2).
I am open to using JavaScript to potentially detect and "force" the loop.
View the Fiddle here: http://jsfiddle.net/a0cpo5xe/1/ - The setup includes 5 frames:
#frame1 {
animation:kf_frame_fade_up 0.4s;
animation-fill-mode: forwards;
animation-delay:0.8s;
}
#picture-1 .blink {
animation:kf_frame_fade_down 0.2s;
animation-fill-mode: forwards;
animation-delay:0.5s;
}
#picture-1 .picture {
animation:kf_frame_fade_up 0.2s;
animation-fill-mode: forwards;
animation-delay:0.5s;
}
#frame2 {
animation:kf_frame_fade_up 0.4s;
animation-fill-mode: forwards;
animation-delay:4.3s;
}
#picture-2 .blink {
animation:kf_frame_fade_down 0.2s;
animation-fill-mode: forwards;
animation-delay:4s;
}
#picture-2 .picture {
animation:kf_frame_fade_up 0.2s;
animation-fill-mode: forwards;
animation-delay:4s;
}
/* FADES */
@keyframes kf_frame_fade_up {
0% {opacity: 0;}
100% {opacity: 1;}
}
@keyframes kf_frame_fade_down {
0% {opacity: 1;}
100% {opacity: 0;}
}