Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
animate-styles
Advanced tools
Composable CSS Animations Built On animate.css
npm install animate-styles --save
var animate = require('animate-styles')
var yo = require('yo-yo')
var el = yo`<h1 class="${animate.fadeIn}">hello</h1>`
document.body.appendChild(el)
The stylesheet will need to be added to the document to view. Here is a way using csjs:
var animate = require('animate-styles')
var csjs = require('csjs')
var style = document.createElement('style')
style.textContent = csjs.getCss(animate)
document.head.appendChild(style)
Or check out csjs-extractify for extracting the CSS to files or csjs-injectify for injecting the CSS into the document.
The animations are exported as smaller sets based on animate-config.json.
var style = require('animate-styles/attention_seekers')
var yo = require('yo-yo')
var el = yo`<h1 class="${style.bounce}">bouncing</h1>`
var animate = require('animate-styles')
var yo = require('yo-yo')
var csjs = require('csjs')
var style = csjs`
.custom extends ${animate.bounce} {
animation-iteration-count: infinite;
}
`
var el = yo`<h1 class="${style.custom}">animate-styles</h1>`
FAQs
Composable CSS Animations Built On animate.css
We found that animate-styles 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.