var scrollPos = window.scrollY || window.scollTop || document.getElementsByTagName("html")[0].scrollTop;
if (scrollPos + window.innerHeight > el.centerY) addAnimation()
p {
float: right;
width: 250px;
}
figure {
animation: imageAnimation 3s linear infinite 0s;
}
figure:nth-child(3) {
animation-delay: 2s;
}