Basic jQuery animation: Elipsis (three dots sequentially appearing)

后端 未结 4 2061
余生分开走
余生分开走 2021-02-04 17:24

What I need:

I need an animated elipisis (...), one dot appearing after the other. The animation needs to loop. I\'d like to achieve this via jQuery

Animation

4条回答
  •  广开言路
    2021-02-04 17:59

    I've written a simple JQuery plugin for it: https://github.com/karbachinsky/jquery-DotAnimation

    //
    Loading
    $(function () { // Animation will start at once var $el = $('.element'); $el.dotAnimation({ speed: 300, dotElement: '.', numDots: 3 }); });

    JSFiddle example: https://jsfiddle.net/bcz8v136/

提交回复
热议问题