Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
svelte-zoom
Advanced tools
Readme
Nearly native image scaling (:iphone:/:computer:), rich in functionality. It is extremely easy to use. it's built by comparing scaling features existing in 'Gallery' apps for smartphones. It doesn't seem slow, but it doesn't seem ridiculously fast either, to be honest, I didn't measure performance. This will also boost your mobile app and website user experience.
The image must take up the entire width and height of the page
npm i svelte-zoom
<Zoom src="URL" alt="..." />
If for some reason you want to zoom in by calling the function manually. You can use the zoomIn
and zoomOut
functions. It will scale in the center of the image.
<script>
import Zoom from 'svelte-zoom'
let zoom;
</script>
<Zoom src="..." alt="..." bind:this={zoom} />
<button on:click={() => zoom.zoomIn()}>Zoom in</button>
<button on:click={() => zoom.zoomOut()}>Zoom out</button>
FAQs
Nearly native image scaling in web (mobile/desktop), rich in functionality. This will make your mobile users happy
The npm package svelte-zoom receives a total of 211 weekly downloads. As such, svelte-zoom popularity was classified as not popular.
We found that svelte-zoom 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.