🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@vianetz/animated-headlines-vanilla

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vianetz/animated-headlines-vanilla

Simple animated, accessible headlines using a plain JavaScript Web Component.

Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

Animated Headlines with Vanilla JavaScript

Animated Headlines with interchangeable words that replace one another through CSS transitions.
See demo.

Installation

npm

npm install @vianetz/animated-headlines-vanilla

bower

bower install @vianetz/animated-headlines-vanilla

Default Usage

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 class="is-visible">pizza</b>
        <b>sushi</b>
        <b>steak</b>
    </span>
</h1>

Advanced Usage

Options

The animated headline component provides multiple options to customize different animation settings depending on the type, e.g.:

<via-animated-headline animation="type" hold="3000" delay="1000">
OptionDescription
animationThe animation effect, one of: rotate-1, rotate-2, rotate-3, type, loading-bar, slide, clip, zoom, scale, push
holdSeconds to wait before starting a new animation cycle
delaySeconds to delay the effect, e.g. typing or rotating

See also demo source for a full list of options for all types.

License

Animated Headlines is open-sourced software licensed under the MIT license.

Keywords

animated headlines

FAQs

Package last updated on 03 Aug 2025

Did you know?

Socket

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.

Install

Related posts