
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.
less-spring-mixin
Advanced tools
less-spring-mixin for emulating spring physics animation
.animated-div {
// You must create your inner mixin
// with .springPropertiesMixin name
// which will accept interpolated
// value (like callback function)
// mixin creates variable @animationDuration
// which you should apply to animation
@name: spring;
.private {.springPropertiesMixin(@value) {
transform: translateY(~'@{value}px');
}}
.less-spring-mixin(@name; {.private;}; 350; 10; 500; 100; 10);
animation: @name @animationDuration linear;
}
In this example was emulated spring with following characteristics:
Tension: 350
Friction: 10
Start value: 500
End value: 100
Step: 10 (optional, default value 5)
.animated-div {
animation: spring 0.92s linear;
}
@keyframes spring {
0% {
transform: translateY(479.60033078px);
}
10% {
transform: translateY(-1.3222199366652414px);
}
20% {
transform: translateY(126.90181092834634px);
}
30% {
transform: translateY(92.89623955782021px);
}
40% {
transform: translateY(101.86520863048564px);
}
50% {
transform: translateY(99.53494922874434px);
}
60% {
transform: translateY(100.12396958484638px);
}
70% {
transform: translateY(99.9671289060412px);
}
80% {
transform: translateY(100.0086680590807px);
}
90% {
transform: translateY(99.9977273485739px);
}
100% {
transform: translateY(100.00059225225972px);
}
}
MIT
FAQs
less-spring-mixin for emulating spring physics animation
We found that less-spring-mixin 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.