Difference between revisions of "Animate"
From Sonic Retro
(progress) |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="display:inline-block;">{{#vardefine:framecount|0 | + | <includeonly><div style="display:inline-block; border:0px solid red; width:auto; white-space:nowrap;">{{#vardefine:framecount|0}}{{#fornumargs:a |
| frame | | frame | ||
− | | | + | | {{#if:{{#var:frame}}|{{incvar|framecount}}}}}}{{#if:{{{delay|}}}|{{#vardefine:delay|{{#expr:{{{delay|}}}*{{#var:framecount}}}}}}|{{#vardefine:delay|{{#var:framecount}}}}}} |
+ | <div style="hei<!-- -->ght:0px; over<!-- -->flow:hidden;">{{#fornumargs: a | ||
+ | | frame | ||
+ | | <div>{{#var:frame}}</div> | ||
}}</div> | }}</div> | ||
− | </includeonly><noinclude> | + | {{#fornumargs: a |
− | {{animate|this|is|animated|delay=0.5}} | + | | frame |
− | + | | <div style="animation-name:animate{{#var:framecount}}; animation-duration:{{#var:delay}}s; animation-iteration-count:infinite; animation-delay:{{#expr:({{#var:a}}-1)*{{#var:delay}}*(1/{{#var:framecount}})}}s; display:inline-block; width:0px; over<!-- -->flow:hidden; border:0px solid blue;">{{#var:frame}}</div> | |
− | + | }}</div></includeonly><noinclude> | |
+ | {{animate|this|is|animated|delay=0.5}} | ||
+ | [[Category:Templates]] | ||
</noinclude> | </noinclude> |