
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.
hotwire-animate
Advanced tools
Bring your Turbo Frames to life with drop in animations.
Taking the "Hotwire" approach we want to avoid writing JS whenever we can. The core goal of this project is to make it as easy as possible to sprinkle in animations whilst still supporting all Turbo Frame events.
Install with npm:
npm install hotwire-animate --save
or yarn
yarn add hotwire-animate
Import into application js or wherever you want:
import 'hotwire-animate';
Ensure you have Animate.css installed on your project.
Pick an animation you want to add from Animate.css and copy the class name, for example animate__bounce.
To add it to your element you will only need bounce (animate__bounce). We automatically add animate__ to any class.
It's as simple as adding a data attribute to the elements you want to animate.
<h1 data-hw-animate="bounce">Bounce this title</h1>
For infinite animations use
<div data-hw-animate="pulse" data-hw-animate-duration="infinite">Spinner</div>
To animate the element when it loads on the page use data-hw-animate-in attribute.
For example, we want the Comment partial to bounceIn when a new comment is created.
# _comment.html.erb
<div id="<%= dom_id comment %>" data-hw-animate-in="bounceIn">
<%= comment.body %>
</div>
Similar approach for when removing a comment, use data-hw-animate-out attribute.
# _comment.html.erb
<div id="<%= dom_id comment %>" data-hw-animate-out="bounceOut">
<%= comment.body %>
</div>
Both data attributes can be used on the same element.
# _comment.html.erb
<div id="<%= dom_id comment %>" data-hw-animate-in="bounceIn" data-hw-animate-out="bounceOut">
<%= comment.body %>
</div>
This project was conceived during Rails Hackathon by Anton.Z and Matt.O in September 2022
This library uses the amazing animations from Animate CSS.
FAQs
[hotwireanimate.com](https://hotwireanimate.com)
We found that hotwire-animate 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.