Layer Animation - animated DokuWiki content




The series of layers has items inside - which are a kind of layers too - that float into the viewport one after the other.

The Layer Animation plugin displays your DokuWiki content in an animated series of layers. It supports the plugins you have installed in your DokuWiki, e.g. include, boxes, iReflect
Pause/Play

You can hover the animation with the mouse to pause it. Leaving the animated area will resume the anmation. You can also click the pause/play button at the lower left the pause and resume the current animation.

Pausing the animation causes the current layer to end its animation (if still in progress) and then stop until you resume it. The buttons always show the current state.

Skip to Item

The lower left also shows a button for each layer. Clicking the button skips to the layer and pauses the animation (see slide 2). Clicking the button again will resume the animation after a timeout of two seconds.


    Syntax

    <animation %HEIGHT%>
    	<layer %OPTION%>
    		<item %OPTION%(?%CLIP%)>
    			This is all **DokuWiki [[Content]]**
    			You can even use other plugins and images.
    		</item>
     
    		<item>
    			...
    		</item>
    	</layer>
     
    	<layer>
    		...
    	</layer>
    </animation>

    Options

    There are basically three things that can be defined using the options place holders %HEIGHT% and %OPTION% and %CLIP% from above.

    • %HEIGHT% is a number determining the height of the overall animation in pixels. The width of the animation cannot be set - it is always 100% of the available width. If you want that otherwise, you can define the following in your template stylesheet:
      #layeranimation {
      	width: 50%;
      }
    • %OPTION% - there is one special keyword you can use here (see below). Besides the keyword you can put any CSS class name into this place to make the animation look more like you need it (e.g. colors, floating of images, text direction … )
      • Keyword fixed in layer - this can only be used in the first layer and will make it a static background layer.
      • Keyword right in item - using this keyword in an item will animate it from left to right instead of right to left.
    • %CLIP% (optional) - if you use several items with links in the same layer, you will not be able to click the links on the lower items. This is due to HTML Container positioned above. Using the optional clipping you can set the viewport of an item (the CSS attribute “clip” will be used). You have to define four values - numbers or “auto” - for top,right,bottom,left, e.g: <item ?auto,100,100,auto> - the example will add a clip to the lower left.

    Download

    Version Requirement
    2009-07-13 see previous
    2009-05-27 Current DokuWiki Stable

    Changes

    • 2009-07-13: added fade out via CSS animation (supported only in Safari 4+ / Google Chrome 3+)

    Support

    If you need help or have suggestions on how to improve this plugin, feel free to contact us.

     

    © Copyright 1996 - 2012, i-net software; All Rights Reserved.