Skip to content

Feature request: outline as an option to the function #3

Description

@kachkaev

It would be nice if one could pass an outline parameter to the function, containing minimum distance between the element and its scrollable parent border.

// If possible, $target will be scrolled so,
//   that there will be at least 10px around it's border visible for a user
$target.scrollintoview({
    outline : 10
});

// Different values for different sides
$target.scrollintoview({
    outline : {top: 10, right: 15, bottom: 5, left: 15}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions