
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@vianetz/animated-headlines-vanilla
Advanced tools
Simple animated, accessible headlines with a plain JavaScript Web Component.
Animated Headlines with interchangeable words that replace one another through CSS transitions.
See demo.
npm install @vianetz/animated-headlines-vanilla
bower install @vianetz/animated-headlines-vanilla
Include the CSS and JavaScript in your head:
<link rel="stylesheet" src="dist/animated-headline.css">
<script src="dist/animated-headline.js" defer></script>
Then use the following markup:
<h1>
My favorite food is
<via-animated-headline animation="rotate-1">
<b>pizza</b>
<b hidden>sushi</b>
<b hidden>steak</b>
</span>
</h1>
The Animated Headlines component provides multiple attributes to customize different animation settings depending on the type, e.g.:
| Option | Description |
|---|---|
animation | The animation effect, one of: rotate-1, rotate-2, rotate-3, type, loading-bar, slide, clip, zoom, scale, push |
hold | Seconds to wait before starting a new animation cycle |
delay | Seconds to delay the effect, e.g. typing or rotating |
The options are set as html attributes on the custom component like this:
<via-animated-headline animation="type" hold="3000" delay="1000">
See also demo source for a full list of options for all types.
Animated Headlines is open-sourced software licensed under the MIT license.
FAQs
Simple animated, accessible headlines with a plain JavaScript Web Component.
We found that @vianetz/animated-headlines-vanilla demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers