Skip to content

console warning of GSAP target undefined #1

@JackLeiLing

Description

@JackLeiLing

it could be fixed by adding a check at line 50 in order not to go beyond the last item in the scroll section

if (index !== items.length - 1) { // Ensure we don't go out of bounds direction == "horizontal" ? timeline.to( items[index + 1], { xPercent: 0, }, "<" ) : timeline.to( items[index + 1], { yPercent: 0, }, "<" ); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions