![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
img-comparison-slider
Advanced tools
Readme
Slider component for comparing images (before and after).
Usage examples: https://sneas.github.io/img-comparison-slider
<script
defer
src="https://unpkg.com/img-comparison-slider@4/dist/index.js"
></script>
<link
rel="stylesheet"
href="https://unpkg.com/img-comparison-slider@4/dist/styles.css"
/>
<img-comparison-slider>
<img slot="before" src="before.jpg" />
<img slot="after" src="after.jpg" />
</img-comparison-slider>
The component could be styled with the help of CSS3 variables.
Example:
<style type="text/css">
img-comparison-slider {
--divider-width: 2px;
--divider-color: #c0c0c0;
--handle-opacity: 0.3;
}
</style>
Variable | Description | Default value |
---|---|---|
--divider-width | Width of the vertical line dividing both images | 1px |
--divider-color | Color of the vertical line dividing both images | #d7d7d7 |
--handle-size | Size of the handle in the middle of divider | 40px |
--handle-color | Color of the handle in the middle of divider | #d7d7d7 |
--handle-opacity | Opacity of the handle | 0.5 |
--handle-opacity-active | On focus opacity of the handle | 0 |
FAQs
Slider component to compare images before and after
We found that img-comparison-slider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.