document.getElementById("tunnel").animate([
// keyframes
{ transform: 'translateY(0px)' },
{ transform: 'translateY(-300px)' }
], {
// timing options
duration: 1000,
iterations: Infinity
});
element..animate([
// keyframes
{
top: '-80%'
},
{
top: '0'
}
], {
duration: 700,
fill: 'both',
easing: 'ease-in-out'
// iterations: Infinity
});