
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-image-compare
Advanced tools
Before/after image comparison components:
- Manual or
- scroll-based
http://hew.github.io/react-image-compare
import { ImageCompare, ImageCompareScroll } from 'react-image-compare'
const img1 = 'img/before.jpg'
const img2 = 'img/after.jpg'
compareStylesScroll = {{ borderRight: `3px dotted yellow` }}
compareStylesManual = {{ borderBottom: `3px dotted yellow` }}
// render
<ImageCompareScroll
srcOver={img1}
srcUnder={img2}
vertical={false}
styles={compareStylesScroll}
/>
// ...
<ImageCompare
srcOver={img1}
srcUnder={img2}
vertical={true}
styles={compareStylesManual}
/>
These components were written with flexibility in mind, and are completely responsive. You can wrap them in any styles you need, and pass through an object to style the animating div.
The Twenty Twenty jQuery plugin.
FAQs
React components for low-level picture comparisons
The npm package react-image-compare receives a total of 4 weekly downloads. As such, react-image-compare popularity was classified as not popular.
We found that react-image-compare demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.