sindresorhus/capture-website

Add `scrollToElement` option #5

sindresorhus posted onGitHub

Useful if you want to capture a part of the screen that contain a certain element.

The value can either be a CSS selector string or an object like:

{
    element: '#foo',
    offsetFrom: 'top', // Accepts `top`, `right, `bottom`, `left
    offset: 10 // Pixels
}

The above object is not set in stone. Happy to receive feedback on it.

I'm also not sure how the object value should be implemented for the command-line interface.


@issuehunt has funded $40.00 to this issue. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

I make an attempt to implement this options in #15 but probably it could be improved 😅. If there is any suggestion, I'm more than happy to make changes 😉

posted by hicom150 about 6 years ago

@sindresorhus has rewarded $36.00 to @hicom150. See it on IssueHunt

  • :moneybag: Total deposit: $40.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $4.00
posted by issuehunt-app[bot] almost 6 years ago

Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

hicom150 was rewarded by sindresorhus for sindresorhus/capture-website# 5
almost 6 years ago
hicom150 submitted an output to  sindresorhus/ capture-website# 5
almost 6 years ago