Sequence.js: Instantly Ready for Prime Time due to Ready-made Themes
Starting with „Sequence.js“ is fairly easy. The download package contains several ready-made themes to give you a head start. All the themes require jQuery which comes prebundled and embedded with any theme. You might have guessed that „Sequence.js“ itself will have to be embedded too. Once done we can call the plugin and attach it to an element.
One of the Free Themes of „Sequence.js“
Sequence.js: Animating Individual Slide Contents
Using CSS we are able to fine tune the ways individual slide contents are animated in. Each element to be animated gets equipped with two states, defined via CSS. The first state defines the look before the animation starts and the second state shows the element after the animation finished. The second state is defines by attaching the class „animate-in“ to it.
In our example we render an image invisible by setting „opacity“ to zero. As soon as the slide containing that image is called the class „animate-in“ gets attached. The image element will then CSS3 transition to the second state. Parallel to that the image is moved 100 pixels to the right. Imagine what kind of animations you are able to define that way.
The HTML of the container comprises of a container carrying an unordered list. The individual „<li>“ elements contain one slide each.
The example creates a slider with three „<li>“ elements. With the first slide directly carrying „animate-in“ it will be visible from the start. On calling the second slide, the class is passed to that one. State changes happen via CSS3 transitions.
Navigation elements are also defined in a slide container.
Make sure to choose and attach the proper classes („sequence-next“ and „sequence-prev“) for navigation. Only this way „Sequence.js“ is able to access these elements and add the necessary functionality.
Should You Rely on Ready-made Themes or Create Your Own?
I already mentioned that you’ll find a set of pre-made themes inside the download package. These serve as agood foundation to build upon them and get going with Sequence.js. The project website offers more themes which you can buy for nine dollars each.
One of the Paid Themes
Once you know your ways around „Sequence.js“ you’ll no longer need themes and will in´stead be able to create your very own sliders quickly. All the configuration parameters are added during the plugin call. Everything else is not more than a little HTML and CSS3.
Browser Support and License
„Sequence.js“ runs in all modern browsers. With a limited feature set it even runs in older browsers. These will display it as a simple content slider without all the gee whiz. All slides will be animated, yet individual slide contents will not be animated individually. Anyway Sequence.js does a decent job sporting a decent look from Internet Explorer 7, despite its limited feature set.
„Sequence.js“ is published under the terms of the MIT license. This means that you can use and modify it freely for private and commercial projects alike. An elaborate and throughly crafted documentation gets you going as fast as possible.