ProtoFlow |
ProtoFlowLicense
You can follow up with more comments and suggestions on our blog http://blog.deensoft.com DescriptionProtoFlow v0.8 is a very early preview release that simulates Apples CoverFlow effect using Prototype/Scriptaculous lib. ChangeLogMarch 26, 2008:
Initial
How to usevar myFlow = new ProtoFlow( Summary
handleSliderChange
wrapper function called after slider has been moved. This in turn calls goTo function which moves the images around. Parameters
handleSlider
wrapper function called after slider has been moved. This in turn calls goTo function which moves the images around. Parameters
moveTo
Actually moves the images based on the position provided by step function parameters
|
Constructor for ProtoFlow Class.
initialize: function( elem, opt )
Internal function that is used to scroll through the list automatically
autoPlay: function()
Currently does nothing.
handleWindowResize: function( event )
wrapper function called after slider has been moved.
handleSliderChange: function( index )
wrapper function called after slider has been moved.
handleSlider: function( index )
When an image is clicked we handle it by finding the appropiate index and then moving the images and updating the scrollbar as well.
handleClick: function( e )
Returns the current position of the image that is being focused on.
getCurrentPos: function()
takes an index and moves the images to that index based on the flex and index provided.
goTo: function( index )
updates the slider to currect position.
updateSlider: function( index )
Steps through the animation process.
step: function()
This function sets up a timer and calls step on the interval specified via options.
slideTo: function( x )
Actually moves the images based on the position provided by step function
moveTo: function( currentPos )