
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A very small svelte component to animate your elements on scroll
SAoS allows you to animate once or multiple times a element on scroll, you can define the top and bottom "triggers" and the css of the internal divs (not recomended, but can help in some cases), see below the demo, how install and some examples :smile_cat:
In terms of performance, this lib uses the Intersection Observer for most of the browsers (shame on you Internet Explorer)
npm i saos --save-dev
yarn add -D saos
Note: Sapper only supports libs as DEV dependencies, if you realy want to use this lib as a normal dependency on Sapper make sure to import like this import Saos from 'saos/src/Saos.svelte'; or otherwise you will have problems with SSR!
Basic usage:
import Saos from "saos";
@keyframes -global-from-left {
0% {
transform: rotateX(50deg) translateX(-200vw) skewX(-50deg);
opacity: 1;
}
100% {
transform: rotateX(0deg) translateX(0) skewX(0deg);
opacity: 1;
}
}
<Saos animation={"from-left 4s cubic-bezier(0.35, 0.5, 0.65, 0.95) both"}>
<div><p>animation: from-left</p></div>
</Saos>
Beyond the animation param, you can use:
You can do something like:
// Create a handler on your script
function handleObserver(x) {
console.info(x.detail.observing);
}
// Use the `update` event on your html that will be dispatched every time that the `observing` update!
<Saos on:update={handleObserver}>...</Saos>
And it will work! Amazing no? take a look at the last card on our demo
If you are lazy (like me) to create your own animations, take a look at animista
FAQs
Svelte Animation on Scroll
The npm package saos receives a total of 935 weekly downloads. As such, saos popularity was classified as not popular.
We found that saos 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.