We'll create fresh WordPress site with Auto AnimateImage installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Auto AnimateImage is WordPress plugin that applies AnimateImage script to your site automatically. AnimateImage displays multiple images continuously like animated GIF. All you have to do is write img
element like below, and the image will be animated automatically.
<img src="images/0.png" data-files="[0-9].png" />
As you know, animated GIF is the most common animation format, but it supports up to only 256 colors. There are some alternative animation formats such as APNG, MNG, JNG, Motion JPEG and SVG Animation. However they are currently not widely supported by Web browsers. That is why AnimateImage is the most appropriate method for animated images.
img
elements. No JavaScript, No Shortcode, No Gallery.img
elements with data-files
attribute are animated automatically. No need for writing JavaScript.See Installation.
All you have to do is write img
elements with data-files
attribute, and the images will be animated automatically. You can animate multiple images with sequential number, zero-padded sequential number, sequential alphabet and arbitrary filenames.
<img src="sequential/0.png" data-files="[0-99].png" />
<img src="zero-padded/00.png" data-files="[00-99].png" />
<img src="lowercase/prefix-a.png" data-files="prefix-[a-z].png" />
<img src="uppercase/A_suffix.png" data-files="[A-Z]_suffix.png" />
<img src="arbitrary/foo.png" data-files="[foo, bar, baz].png" />
<img src="parent/child0/image.png" data-files="child[0-9]/file.png" />
AnimateImage supports many animation options such as animation delay, repeat count, rewind, pause and blank image. You can specify them with data-*
attributes like below.
<img src="" data-files=""
title="" alt="" id="" class="" style=""
data-delay="" data-cycleDelay=""
data-repeat="" data-rewind=""
data-pauseAtFirst="" data-pauseAtLast=""
data-showBlank="" data-blankClassName=""
data-blankPath="" data-stretchBlank="" />
See Code Examples for more information.
Any comments will be very helpful and appreciated. Thank you for your support!
<img src="sequential/0.png" data-files="[0-99].png" />
<img src="zero-padded/00.png" data-files="[00-99].png" />
<img src="zero-padded/000.png" data-files="[000-999].png" />
<img src="lowercase/prefix-a.png" data-files="prefix-[a-z].png" />
<img src="uppercase/A_suffix.png" data-files="[A-Z]_suffix.png" />
<img src="arbitrary/foo.png" data-files="[foo, bar, baz].png" />
<img src="arbitrary/foo.png" data-files="[foo.png, bar.jpg, baz.gif]" />
<img src="prefix-foo_suffix.png" data-files="prefix-[foo, bar, baz]_suffix.png" />
<img src="parent/child/file0.png" data-files="file[0-9].png" />
<img src="parent/child0/image.png" data-files="child[0-9]/file.png" />
<img src="parent0/child/image.png" data-files="parent[0-9]/child/file.png" />
* data-files
attribute is specified with filename or relative path to directory, including format string.
<img src="images/0.png" data-files="[0-9].png" title="foo" />
<img src="images/0.png" data-files="[0-9].png" title="foo" alt="bar" />
<img src="images/0.png" data-files="[0-9].png" alt="bar" />
* alt
attribute with the value of title
attribute will be added if not specified.
<img src="images/0.png" data-files="[0-9].png" id="foo" />
<img src="images/0.png" data-files="[0-9].png" class="bar" />
<img src="images/0.png" data-files="[0-9].png" class="" />
* class
attribute will be added if not specified. default class
attribute value is "animation"
.
<img src="images/0.png" data-files="[0-9].png" data-delay="1000" />
<img src="images/0.png" data-files="[0-9].png" data-cycleDelay="2000" />
* In default, delay
option is 500
ms and cycleDelay
option is 0
ms.
<img src="images/0.png" data-files="[0-9].png" data-repeat="1" />
<img src="images/0.png" data-files="[0-9].png" data-repeat="1" data-rewind="true" />
* In default, repeat
option is -1
(infinite iteration) and rewind
option is false
.
<img src="images/0.png" data-files="[0-9].png" data-pauseAtFirst="true" />
<img src="images/0.png" data-files="[0-9].png" data-pauseAtLast="true" />
* In default, pauseAtFirst
option is false
and pauseAtLast
option is false
.
<img src="images/0.png" data-files="[0-9].png" data-showBlank="true" />
<img src="images/0.png" data-files="[0-9].png" data-showBlank="true" data-blankClassName="foo" />
<img src="images/0.png" data-files="[0-9].png" data-showBlank="true" data-blankPath="blank.png" />
<img src="images/0.png" data-files="[0-9].png" data-showBlank="true" data-blankPath="logo.png" data-stretchBlank="false" />
* In default, showBlank
option is false
and blankClassName
option is "blank"
.
<img src="images/0.png" data-files="[0-9].png"
width="100" height="100" longdesc="long description" />
<img src="images/0.png" data-files="[0-9].png"
style="border: solid; border-top: dotted; border-bottom: dashed" /><h3>Localization</h3>
You can localize the plugin with Poedit. Here is how to translate the plugin into your language.
“[LANG]” is a language code. For instance, “de_DE” is for German, “sv_SE” is for Swedish, “pt_BR” is for Portuguese spoken in Brazil. If you want to know your language code, see WordPress in Your Language. If you need more information, see Translating WordPress.
I would be grateful if you would send me any translation files. Here are the available translations included in the latest plugin.
If you have any questions, feel free to contact me.