Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animated-ellipsis

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animated-ellipsis

Animated-Ellipsis is used to indicate that an action is being executed, nicely combined with a tip sentence.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Animated-Ellipsis

animated-ellipsis

Animated-Ellipsis is used to indicate that an action is being executed, nicely combined with a tip sentence.

Install

npm install animated-ellipsis

or

<script src="https://cdn.rawgit.com/szchenghuang/animated-ellipsis/master/src/index.js"></script>

Usage

  • Put an element on the page with empty children.
  • Call animateEllipsis on the element.

That's it. An animated ellipsis will be displayed on the element.

Configuration

There are some settings you can tweak by setting data attributes on the element.

<span class="ae" data-font-size="2rem" data-margin-left="0.1rem" data-spacing="0.1rem"></span>
  • data-font-size: The font size of dots. Default: 2rem.
  • data-margin-left: The spacing between the sibling text and the first dot. The value is set to margin-left of the first dot. Default: 0.1rem.
  • data-spacing: The spacing between dots. The value is set to margin-left of the second and third dots. Default: 0.1rem.

Example

<div>
    Loading<span class="ae"></span>
</div>
// Import first.
require( 'animated-ellipsis' );

// Animate it.
document.querySelector( '.ae' ).animateEllipsis();

loading

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Package last updated on 06 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc