Timeline Methods
Timeline Methods
.to()
tl.to(".box", {
x: 200,
duration: 1
});
.from()
tl.from(".box", {
opacity: 0,
y: 100,
duration: 1
});
.fromTo()
tl.fromTo(
".box",
{ scale: 0 },
{ scale: 1, duration: 1 }
);
.set()
tl.set(".box", {
opacity: 0
});
Instant property change.