Rotate and translate multiple elements with multiple offsets
let SC = ScrollMoo({
".box": {
markers: true,
indicatorStart: 50,
indicatorEnd: 50,
keyframes: {
transform: {
translate: {
50: "100px, 100px",
100: "0, 0" // or "0px, 0px"
},
rotate: {
50: "360deg",
100: "0" // or "0deg"
}
}
}
}
});
Copied!