Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inset option #8

Closed
sindresorhus opened this issue Feb 12, 2019 · 2 comments · Fixed by #62
Closed

Add inset option #8

sindresorhus opened this issue Feb 12, 2019 · 2 comments · Fixed by #62
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Feb 12, 2019

Issuehunt badges

To be able to reduce the scope/clip of the screenshot.

For example ignore 10px at the top of the page:

{
	inset: {
		top: 10
	}
}

Or select an element and also include 10px around it:

{
	element: '.foo',
	inset: {
		top: -10,
		right: -10,
		bottom: -10,
		left: -10
	}
}

Or the shorthand for all sides:

{
	element: '.foo',
	inset: -10
}

Happy to consider improvements to the option proposal.


IssueHunt Summary

krnik krnik has been rewarded.

Backers (Total: $40.00)

Submitted pull Requests


Tips

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Feb 12, 2019
@IssueHuntBot
Copy link

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

Repository owner deleted a comment from SultanKhatri Apr 10, 2019
@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
@ghost ghost mentioned this issue Nov 5, 2020
@issuehunt-oss
Copy link

issuehunt-oss bot commented Feb 7, 2021

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

  • 💰 Total deposit: $40.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $4.00

@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants