Is this code written correctly? Is there a better way to write it?
tl.to(".items li .item:first-child", {
duration: 1,
xPercent: 100,
yPercent: -20,
stagger: 1,
})
.to(".items li .item:last-child", {
duration: 1,
xPercent: -100,
yPercent: 20,
stagger: 1,
}, "<");