midoriFX
midoriFX provides basic visual effects.
-
show(id, callback)Shows an object with a slide-down animation.
id is the id of the object.
The callback parameter is optional. If you pass one, it will be called once the effect is complete.
Example:
<div id="quote" style="display: none">...</div> [Run] <a href="javascript: midoriFX.show('quote')">Run</a>
-
hide(id, callback, constantSpeed)Hides an object with a slide-up animation.
id is the id of the object.
The callback parameter is optional. If you pass one, it will be called once the effect is complete.
constantSpeed defaults to false. When set to true, the effect will be displayed in constant speed, ideal for objects that the regular effect would be too fast.
You can make more friends in two months by becoming interested in other people than you can in two years by trying to get other people interested in you.
Dale CarnegieExample:
<div id="quote2">...</div> [Run] <a href="javascript: midoriFX.hide('quote2')">Run</a>
-
scrollTo(id, correction)Scrolls the document to the top-left corner of an object.
id is the id of the object.
The correction parameter is optional. It specifies the number of pixels the scroll location will be adjusted.
Example:// Scrolls to the previous document entry (hide) midoriFX.scrollTo('hide'); [Run]
