
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 using plain JavaScript.
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 in your head.
<link rel="stylesheet" src="dist/animated-headline.css">
Use the following markup.
<section class="animated-headline">
<h1>
My favorite food is
<span class="ah-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section>
Finally, initialize the plugin.
<script src="dist/animated-headline.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => AnimatedHeadline('.ah-words-wrapper'));
</script>
The plugin provides multiple options to customize the animation type and delay.
<script>
document.addEventListener('DOMContentLoaded', () =>
AnimatedHeadline('.ah-words-wrapper', {
animationType: 'type',
animationDelay: 1500,
})
);
</script>
It is recommended to use the default delay options. Because of this, I won't list them below. See app.ts for a complete list of options.
| Name | Type | Default | Description |
|---|---|---|---|
| animation-type | string | rotate-1 | Type of animation used. Options:
|
Animated Headlines is open-sourced software licensed under the MIT license.
FAQs
Simple animated, accessible headlines with a plain JavaScript Web Component.
The npm package @vianetz/animated-headlines-vanilla receives a total of 4 weekly downloads. As such, @vianetz/animated-headlines-vanilla popularity was classified as not popular.
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.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

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