JavaScript is normally based on Prototype. MooTools, however, builds on a class-based inheritance system that serves as a basis for object-oriented programming and therefore for all components contained in the framework. This system does not only mean easy extendibility, it also enables users to write reusable and flexible source code. With the help of predefined, modifiable classes, you can also implement similar objects (plug-ins, HTML elements, Ajax requests, etc.) that all help you to save time. Among others, the following components can be expanded using MooTools JavaScript:
- Core: MooTools Core is the central element of the JavaScript framework upon which all components are based. As well as the implementation of the class concept, Core contains some general support functions.
- More: MooTools More is the framework’s official plug-in collection. It includes diverse extensions that streamlines the development process and adds further features.
- Class: the Class component is the basic class needed to instantiate (generate) reusable class objects and modify existing classes.
- Element: One of the key components that can be used to access or generate cross-browser-compatible HTML element objects. Contains the dollar functions, $ and $$.
- Fx: an effect module that serves as the basis for animating elements and therefore for scrolling, sliding and other effects.
- JSON: a module for coding and decoding character strings in the JSON format (JavaScript Object Notation).
Of course, some modules build on each other, so for example, the Fx.CSS module requires you to install the related Fx module as well. In general, however, you can select the components you need and download them individually to create your compiledMooTools framework. For this purpose, a list of individual modules are divided into the two major categories: Core and More. It is also possible to download the complete basic package or all available extensions. It’s also possible to download the complete basic package or all available extensions.
The MooTools developers provide a small taste of the individual components with the MooTools demos available on aryweb.nl. There you’ll find presentations of drag and drop functions, effects, and forms, as well as an introduction to MooTools JavaScript, HTML, and CSS code lines.