Push and modal segue for sioux
More info from sioux: gerhardberger.github.io/sioux/
npm install sioux-segue
Push and modal segue for sioux. The
push type will perform a right to left
wind and a left to right
modal type will animate a window from the bottom when winding, and back when unwinding.
var Segue = require'sioux-segue';var segue = documentquerySelector'.foo' 'push';// first argument: the element segue is performed on// second argument: the type of segue
falseif it is animating
contentFn is a function which has to return a DOM node or node list, that will be inserted into the appearing window. The
callback function will be called when the animation finished.
push type same as the
wind method but this will slide to the right. If the segue is
modal there is no
contentFn argument just a
Loads content to segue for the first time.