Showing posts with label Webdesign. Show all posts

Quick Effect: Magnifying Track Matte


Final Product What You'll Be Creating

This tutorial will teach you how to generate a magnifying effect with the use of an animated track matte. The final effect can be used for many purposes, particularly to create a sophisticated background for other elements, such as logos and text.
This tutorial is ideal for beginners or experienced After Effects users who want to quickly learn an attractive and simple technique.

Step 1

Open After Effects, and create a new composition (up top click “Composition -> New Composition”). Use the settings in the image when prompted. This will create a new composition that is 1280×720 that is 10 seconds long. After you learn, you can set your composition to whatever resolution suits your needs.

Step 2

Next you will need to draw a rectangle shape in this new comp. First you will need to zoom out quite a bit to see beyond the visible comp. You’ll see why in the next step. Zoom out by scrolling your mouse wheel down, or use the zoom drop down on the bottom left of your comp. Next use the rectangle tool, and draw a thin white rectangle that overlaps the top and bottom of your composition as shown in the below image. The color white for the bars on a black background is important.

Step 3

Now we will add an expression to the rectangle called Wiggle. What it will do is “wiggle” the layer randomly over time. We are trying to generate a smooth side to side movement. This can be keyframed but let’s allow the expression to do the work for us.
Navigate to the layers and drop down the arrow for the rectangle exposing its properties. Then drop down “Transform”. Hold Alt/Option and click the stopwatch next to the “Position” property. This will allow you to add an expression. Paste this code in that area (without the quotations, of course) “wiggle(1,65)”.
The first value in the wiggle expression is the “frequency” which defines how many wiggles occur every second. The second value in the expression determines how many pixels the object is allowed to move. This movement is why we made the shape larger vertically than the composition to prevent the shape’s top or bottom from moving into view. It also helps simulate a side to side movement only. Try to preview the animation at this point and watch your little rectangle move!

Step 4

Once this is done you will need to duplicate your rectangle 25 times (select the layer and hit CTRL+D). I know this seems excessive but it will pay off.
Each instance/copy you make, you need to move and randomly resize each one. Refer to the below image for an example, then create your own version.
Note: Feel free to play this step by ear. You don’t have to copy my example: add a few more copies, and play with sizing. Also, from trials I have found that a lot of smaller copies tend to add to the end effect. It’s also OK to position some off stage… if close enough, they will move on stage at some point.

Step 5

Your track matte is complete. You will now need to create a new composition within the same project. Once again, go to the top and select “Composition -> New Composition”. Use the same settings shown in Step 1. This new comp is where we will pair our footage with our moving bars track matte.

Step 6

Go to “File -> Import -> File” and select your footage. Since we are working in an HD format composition, I suggest using footage that is at least as large as the comp. By importing smaller footage you will need to scale the footage up, and could risk loosing quality. Once the import is complete you
should now have 3 files in your “Project” panel (Comp 1, Comp 2, and your footage). I’m going to use a stock image to demonstrate the effect. Stock image can be
found here: Link.

Step 7

Place your footage on the timeline of Comp 2. Ensure it is centered on the stage. Select that layer and again use Ctrl+D to duplicate your footage layer.
Now you have two copies of the same footage on your timeline. Lastly, you need to pull “Comp 1″ from the project panel to the top of your layer stack. Turn off the visibility of your “Comp 1″ layer. Do this by clicking the small eye icon to the left of the layer. If the matte is visible it will only look like a black and white animation, whereas the footage is the meat and potatoes of the project and that’s what we want to be able to see!

Step 8

Essentially, the matte we created in Comp 1 is a looking glass through to the two footage layers. The setup we are preparing will display the bottom footage layer in all of the black areas of the track matte, and will display the top footage layers in all of the white areas of the track matte. This is why it was so important to work with a black background and white rectangle shapes.
To be able to see the effect we need some difference between the two footage layers. To create this, we are going to scale the top-most footage layer up 5%. Drop down your top-most footage layer (the middle layer of the three) and then drop down “Transform”. Click the value in the scale property and change it to 105% and finally drop down the “TrkMat” for that layer and select “Luma Matte – Comp 1″.
By increasing the scale on the top footage layer, it gives off a magnified/displaced effect.

Step 9

Render your “Comp 2″ and you will end up with your video!

Additional Suggestions

This end result is just one of the many paths that could have been taken from the beginning of the tutorial. To achieve different results, you can tweak a number of different things.
  • Change how many shapes you place on the stage.
  • Vary the size of the shapes.
  • Change the values of the wiggle setting to make it faster/slower or to make it move more/less.
  • Give each shape a different wiggle setting… have them all moving at different speeds.
  • Blur the top or bottom footage layer.
  • Make one footage layer greyscale and the other footage layer color.
  • If at any time you feel you need to make a change to your track matte you can go back into
    your “Comp 1″, make the change, and when you change back to “Comp 2″ your change with automatically be reflected in the project.
The wiggle expression used here is bare-bones basic. After getting acquainted with things, you may want to check out AutoExpress.
It’s a script for After Effects that will allow you to apply the wiggle as though it was an effect rather than having to type the script manually. You can also add smoothing and looping to the equation to further the possibilities of this project!

How to Create Glowing Elegant Lines


Final Product What You'll Be Creating

In this tutorial you’ll be creating elegant glowing lines using shape layers within After Effects. We’ll create a few basic arc layers and then stylize them by using the find edges effect, glows, and blending modes. I enjoy this technique and you can easily adapt this concept to many different shapes to create some stunning looks.

Tutorial

Download Tutorial .mp4

File size 62.4MB

Patterns? 1990's Like?


You might think I'm talking about those horrid eye-stitching website patterns from the 1990's that are provided in a low-quality, highly-compressed 16-colour .GIF format.... I THINK NOT! Thanks to Subtle Patterns at subtlepatterns.com, you can find a wide variety of high-quality modern, clean patterns - that are perfect for today and tommorow's website.

You may have noticed that I have used a subtle pattern as the background of this website - which is a simple pale-grey texture. It fills in the gaps perfectly, blending in with the rest of the website design - without being "in-your-face" and ghastly.

You can find more patterns for your website that incorparate a sleek and clean design. Did I also mention that every single pattern repeats and blends in wonderfully, without that horrid outline or juddery-edge. Also, because they repeat throughout, your browser only has to find and load a small image - so it will improve the speed compared to a large full-screen image. Because it repeats, it doesn't matter what your screen-size or resolution is, it will fill the whole screen.
Here's the website link. If you need any questions answered, just comment below! :) Thanks for reading and have a great day.

The Importance of Getting Great Feedback in Web Design


It seems silly, obvious, trivial, even trite (thank you thesaurus!), but taking a little extra time to show your design to a peer before presenting it to the client or art director is an easy way to clean up your work and omit mistakes that you might have missed otherwise. Getting feedback from your peers is an easy way to get a unique perspective on your work from outsiders who might see things that we don’t. This article examines the key benefits of getting great feedback on your web designs and we’ll also share a few tips for getting it.
I’ll also list 14 places online where you can get feedback, critiques and exposure without ever leaving the comfort of your office chair!

Fresh Eyes Aren’t Such a Bad Thing

review my web design feedback critique
When I was in art school, most peer reviews amounted to long winded class sessions that were more frustrating than they were helpful. For a while, this gave me a bad impression of what the purpose of a peer review really was – in most cases, my peers just weren’t interested enough to really give great criticism. Just like many experiences in my college life though, this one didn’t really give an accurate impression of how things work in reality.
In my experience since then, I’ve discovered that finding a source of good quality, consistent critiques of your work can often be an invaluable resource for improving both individual projects as well as your overall performance as a designer.

The Benefits of Feedback

It’s the Simplest Form of Quality Assurance

When a company is building a car, Quality Assurance (or QA) is the step where people actually drive the car to check whether or not the wheels fall off. In the world of design, quality assurance generally comes in the form of having people inspect work (be it a flat comp or a coded website) for obvious flaws, mistakes and oversights. When you’re working on a project for hours on end, it’s easy to go into visual-burnout mode; A quick 5-minute review can often reveal problems in your design that you just didn’t see while you were obsessing over the details.

It Gives You an Alternate Perspective

In most design studio environments, internal reviews are built into the workflow; For lots of designers that work in an individual capacity though, it’s easy to forgot about the fact that your design is going to be seen by a LOT of people, not just you and the client. Having outside people review your design is the cheapest way to get a quick understanding of how visitors will react to your work and whether or not it’s succeding at it’s goals.

It Forces You to Confront Your Own Work

When the projects are stacking up and clients are calling incessantly, it’s easy to skip the “honest” parts of our workflow. In most cases, if a designer is given just one project and an ample amount of time to work on it, he’ll spend a good portion of the project being critical of his work. The first thing to really go out the window when things heat up is that intuitive desire to really become our own critics; Hearing other people critique our work can be the best way to shake off laziness and see through a rough-draft to the polished final product that we want it to be.

How to Get Great Feedback

review my web design feedback critique
Now that we know why we should want feedback, let’s take a look at some tips for getting it and making the best of it:

Tip 01: Offer Only a Brief Explanation

When requesting feedback for a design, you don’t need to give an hour long presentation (visitors of the site certainly won’t have that kind of patience). A quick, 10 second explanation should be all that’s really necessary for your peer-reviewer to do his/her work; Anything longer will ruin the main purpose of the peer review – to reveal gaps and mistakes in the design. Don’t let your long-winded explanation become a crutch for a design that just needs a little improvement for it to stand on its own. If the function of the design isn’t obvious to the reviewer within a minute or two, your design probably still needs some work.
A quick, 10 second explanation should be all that’s really necessary for your peer-reviewer to do his/her work; Anything longer will ruin the main purpose of the peer review.

Tip 02: Don’t Be Defensive

This step is simple, but lots of people have a hard time living this out – let your reviewer know that they should speak their mind and be open about what it is that they are seeing. Having them mince words and spare your feelings won’t really push you to do your best work. Plus, if they spot a key weakness in your design that you can fix prior to the client presentation, they’ve just made you look that much better in front of the big decision maker. A little criticism now will save your reputation in the long run.

Tip 03: Reciprocate

In most cases, your peer reviewer should be another designer (or at the very least someone who has a grasp of the medium – your grandmother who doesn’t know how to right-click might not be a big help here). Because of this, the best way to really ensure consistent, quality feedback is to actually reciprocate by giving them feedback when they need it.
There’s another reason to give criticism back to your peer-reviewer (no, not to get even with them for their latest scathing review!); Giving feedback can be one of the best ways to improve your own ability to “see”. Being a good critic not only means that you’ll be forced to be more analytical; it means that you’ll be forced to communicate your own feedback in a way that others can understand… and believe me, being able to quickly articulate your thoughts in a review-situation is a vital skill for any designer.
Being a good critic not only means that you’ll be forced to be more analytical; it means that you’ll be forced to communicate your own feedback in a way that others can understand…

Tip 04: Find a Community

There are actually quite a few sites out there that have been built on the premise of fostering communities that provide the same kinds of critiques that we’re discussing here. These online sources of feedback might require a little extra work up front on your part (in the form of leaving comments on other user’s work and being active in the community), but they can be just as effective as having someone critique your work in person.
The following selection of sites is quite broad; I’ll try to cover everything from open communities to usability apps to invite-only design networks. The key here is that you find the platform that works best for you. Some beginners might fit in best at one site, where industry veterans might find their home at another. Let’s get started:

Review My Design

Review My Design hits home on the points discussed earlier in this article… Frankly, I wish there were more like it because it’s one of the only sites on this list that is dedicated to giving and receiving feedback from other web designers. Review My Design is a community based site where designers can help out other designers by providing constructive criticism on their work in order to help improve it. It’s free to join, and like any community, the more people who get involved, the better it becomes.

Dribbble

I’ll admit that Dribbble is one of my favorite new sites of the past couple of months. It’s an invite-only community of designers where you can share little snapshots of projects that you’re working on at the moment. This is great for getting feedback from fellow designers while you’re mid-project, but not so great if you can’t find an invite (I had to beg, cheat and steal to get one). The only real downside that I can see: the work on there can be so good at times that it feels strange uploading a mediocre snapshot.

Forrst

Forrst is another invite-only community of designers that is focused on sharing links, screenshots and code snippets. The pros: the community is professional, experienced, and likely to know what they are talking about. The cons: it’s invite only at the moment, so you’ll have to wait for an invitation or wait for a public opening.

deviantArt

DeviantArt is an excellent community to get involved with if you’re seeking feedback – they even offer unique options like tagging your uploads with “I want critiques”, and it’s completely open to the public. Like most communities, the more you put into it, the more you’ll get out of it. “deviantART is a platform that allows emerging and established artists to exhibit, promote, and share their works within a peer community dedicated to the arts. The site features vibrant social network environment receives over 100,000 daily uploads of original art works ranging from traditional media, such as painting and sculpture, to digital art, pixel art, films and anime”.

Sitepoint Forums

With nearly 6000 threads and well over 100,000 posts, Sitepoint is another site leading the way in terms of having a big, active community. It certainly helps that they have 60,000 followers on Twitter alone. Sitepoint is a well known name in the field of web design, and they are well respected thanks to their large selection of books, e-books, and articles.

Critique the Site

Critique the Site is one of the more unique feedback platforms. Users can enter the URL of your site and leave feedback through a frame on the left side of the page. This is great if you want to invite specific people to your site for inline reviews; You can even integrate this with social media sites like Twitter, Google, Facebook, Yahoo, etc.

Concept Feedback

Concept Feedback turns the process of giving feedback into a game. Reviewer rate your work on four criteria: Design, Purpose, Originality and Engagement. Based on how much feedback reviewers give, they can gain special badges, points, and ranks to brag about how awesome they are at giving feedback. This is one of the more active communities out there, and it’s endorsed by some heavy hitters like the New York Times and WebAppStorm.

Five Second Test

Five Second Test does what you’d expect; Users are shown a website for exactly 5 seconds, then asked a series of questions about what they saw. What’s great about this process is that it allows for the instant, knee jerk feedback that’s so crucial in any website. If users aren’t informed and interested within the first moments of visiting a site, there’s a good chance they’ll bounce right off of it. Boasting nearly 270,000 reviews so far, it’s worth checking out.

Usabilla

Usabilla is a tool that allows you users to place notations on your live website. This is great if you’re managing a redesign and want to get feedback from beta testers – viewers can simply use the in-browser tools to add notes to the elements they have feedback on. You can even run activities like “Click the first thing you looked at on this website”.

Userfly

Another site that is great if you already have a live website up and running. Userfly is focused on giving feedback that’s a little less direct than the other sites on this list; Rather than having users report back, Userfly gives you reports on how visitors are actually using your site. You can even watch real users click around your site… which is equally interesting and creepy. What’s great about this is you get a real life example of how people browse your website, something that few other sites are offering.

Flickr

Flickr isn’t often thought of as a place to get feedback, but if you consider the wide audience that it brings in as well as it’s simple commenting capabilities, this is a great place to post some of your designs to get reactions from a wide range of people.

Behance

Behance is one of the more professional communities of creatives out there right now. Behance is mostly catered towards designers looking for a complete portfolio review (rather than critiques on individual projects), but the wide array of people on the site makes it a great place to get exposure and reactions to your work from designers and art directors alike.

Creattica

Creattica is another site that functions primarily as a place to upload your entire portfolio once you’re good and confident with it. In addition to it being a great place to get exposure, it’s also an effective way to gauge user’s reactions to your work through a voting system that’s open to the public. Oh, and it’s part of our awesome network of Envato websites!

Please Critique Me

Please Critique me is a fantastic idea for a site: allow industry professionals to review the work of anyone who wants to submit. The site appears to be defunct (the last post was on February), but it’s worth noting the idea of a “board of experts” approach to a feedback site – if only to encourage them (or someone else) to make it more active. The only downside: these experts probably have day jobs!

Tip 05: Before You Launch, Ask The Target Audience

Here in Los Angeles I have a hard time going to a movie theater without being asked if I want to see an advance screening of an upcoming film. These advance screenings have three things in mind:
  1. Gauging Viewer’s Reactions
  2. Developing Buzz
  3. Countering the Professional Critics with Actual Audience Opinions
This last tip will slightly go against my previous advice to seek out the advice of peers and experts. While your fellow web designers can be enormously helpful in the early stages of a project, what you really need towards the end of a project is the opinion of actual users. If you’re designing a “Twitter for Beginners” app and every peer that you show your work to is familiar with Twitter, you’re doing yourself a disservice by avoiding feedback from the people you’re actually targeting: beginners! Likewise, it’s important in any project that you define the target audience and actually show the design to that target audience before you finalize the design.

Conclusions:

There are a lot of ways to get feedback, whether it be in person or on an online community or web-app. The key principle to remember is that it’s worth the time to actually go out and find it. I hope you’ve enjoyed the article; Post your own comments and opinions below!

How to Start Using jQuery Sliders in Your Designs


jQuery sliders offer a simple, elegant way to display content without giving up valuable real estate on your web page. They have skyrocketed in popularity and can be used in a variety of ways. Let’s go over the popular styles, choosing a slider and integrating one into a demo site.

A Little Background

Once upon the time, an image on the web just had one way of showing up: as a flat JPG, GIF or PNG. Sometime a few years ago, images started learning new tricks; They grouped together and started showing up in jQuery sliders to the applause of visitors all around.
Since then, they’ve learned a plethora of new tricks that make them prime material for any web designer. Whether you’ve used them before or not, this tutorial will give you insight into the different flavors of sliders, when to use them in a design, and we’ll even walk you through an installation of one.
If there is one thing jQuery sliders don’t have, it’s a consistent name. The slider goes by a wide array of aliases: gallery, carousel, promos and rotators but they all provide the same general feature – display multiple content items in a shared space on the page. For the purpose of this article, I will refer to them all as a “slider”.
jQuery sliders can be used for nearly anything but most are used display a number of photos in a slideshow format in a way formerly handled by Adobe Flash. Many offer a number of transition effects between slides and can be controlled by previous/next buttons, tabbed or thumbnail navigation.

Popular Styles of jQuery Sliders

The number and variety of sliders continues to grow steadily, so finding a slider to fit your needs has never been easier. They come in all shapes, sizes, and sizes – a number of them are free, which means that when you do pay for a slider, it’s usually loaded with great features.
Lets walk through a few of the more popular styles of sliders below. Keep in mind, most examples shown are from the unstyled demo versions and all can be customized with some basic CSS knowledge and reading the documentation.

Standard Photo Slider

jquery photo slider
Example used: NivoSlider – http://nivo.dev7studios.com/
A very popular style of slider is the photo slider. Many accept an image and some metadata such as a caption, often pulled from the alt or title tag automatically.
Advantages: Typically the easiest to get started with for beginners. The focus is put directly on a large image you choose. Many have multiple transition effects between slides from sliding, fades, zooms and more.
Disadvantages: If you have a wide variety of content you need to display such as HTML, images or video, a mixed content slider may be a better choice – most require you to stick to images.

Mixed Content Slider

jquery mixed contentslider
Example used: Anything Slider – http://github.com/chriscoyier/AnythingSlider
While similar to the photo slider, mixed content sliders allow you to use more than just images. Review all the options when choosing an image slider, some do allow for HTML but may not be listed in the primary feature list.
Advantages: Perfect for displaying video, HTML and image content within the same slider if needed.
Disadvantages: Mixed content sliders can be a bit more advanced to work with than your standard photo slider.

Gallery Style Slider

jquery gallery slider
Example used: Galleria – http://devkick.com/lab/galleria/
The gallery style is often used in photography applications. The navigation is often made up of thumbnails to browse through the images in your collection.
Advantages: Very easy for users to browse through the images they want to see quickly.
Disadvantages: Often times takes up more real estate on the page than a standard slider to fit the image and all thumbnails.

3D Block Slider

3d Block slider Cu3er cuber
Example used: Cu3er – http://getcu3er.com/
Think of a Rubik’s cube, built on the web, without all the headaches. That’s basically what a 3D Block Slider is – it’s incredibly impressive from a visual standpoint, and can be perfect to add that extra bit of excitement to a site.
Advantages: One of the most visually stunning sliders out there. If visitors haven’t seen it before, their jaws might hit the floor.
Disadvantages: While the rest of the sliders in this tutorial are jQuery, most of the 3D Block Sliders are built in a combination of Adobe Flash and XML… which isn’t the most “standards friendly” format to use. These sliders can require a little more time to “preload”; Because they are built with Flash, it also means that they can be a little trickier to install if you aren’t familiar with it.

3D Space Slider

Inspired by Apple’s cover flow effect, this slider effect is a stunning way to display your work. When coupled with a minimal style site, this slider can feel right at home.
Advantages: This style can be a very impressive and very interactive way for users to browse a gallery of images showcasing your work.
Disadvantages: Many have a small scroll bar or use the mouse scroll wheel or keyboard to view the images which can be a bit awkward with some unintentional scrolling.

Full Size Slider

The full size slider is what it seems – a slider that takes up the entire page to show off your work in a way that can’t be missed.
Advantages: If you have a “go big or go home” style, they really do not get much bigger than this.
Disadvantages: They may be a bit tough to integrate into a site since they are designed to fill the screen with your work. Images used must be quite large to fill new high resolution screens.

Thumbnail Slider

jquery thumbnail slider
Example used: jCarousel Lite – http://www.gmarwaha.com/jquery/jcarousellite/
Sometimes you may find yourself in a situation where you want to display a grid of images and allow quick browsing without making the user load a second or third page.
Some sliders have the capability to show multiple images per slide or multiple slides at once so check the feature list. In jCarousel Lite featured above, “visible” is set to 3, showing three slides at a time.
Advantages: Allows you to scroll multiple items at once for times when a large image or content is not needed. Great for groups of items or when you have the room on the site.
Disadvantages: There are not many disadvantages to this style other than just being a little more complex to set up than the standard photo slider.

Horizontal Sliding Tabs / Accordion Slider

jquery accordion tabs slider
Example slider used: HSlides – http://plugins.jquery.com/project/hslides
Sample image is from the Circo theme: http://bannersmonster.com/themes/Circo/
The accordion style makes browsing through featured items a little like flipping through pages of a book. This uses a classic “hide and reveal” user behavior by just showing a snippet of the content before sliding the entire accordion box out.
Advantages: A very unique and fun way to display your items. The stepped style can help reinforce a sense of order if you are using a “step 1, step 2, step 3″ content paradigm.
Disadvantages: Not great for dozens of slides and can be a bit difficult for new web users to operate accidentally sliding items open and close with a pass of the mouse. Consider a click to open tab style or setting if available.

Large Tabbed Slider

jquery large tabbed slider
Example used: Feature List – http://jqueryglobe.com/article/feature-list
The feel you get when using the large tabbed slider is a sense of simplicity – step 1, step 2, step 3. A great way to show progressive changes, features or product options.
Advantages: Very attention grabbing with proper styling. Like the accordion, this slider shows a hint of what is inside each slide, which can be great for visitors that are seeking specific information.
Disadvantages: You may need to limit the number of items you want to include unless you use a tabbed slider like the iTunes Music Store.

When to Design Your Own Slider

Although the variety and quantity of sliders is steadily on the increase, sometimes you just can’t find a solution for for your unique situation.
If you are going to be using many sliders in your projects, it is worth your while to dig in and really learn how they work and build one yourself. The best way to learn is by example.
Dissect existing sliders, see how they work and learn from it. Don’t steal other developer’s code but instead focus on what they are doing: animations, changing opacity and reviewing the settings they offer and write it in your own way.
With tools like Firebug, you can “inspect” a slider in real-time, watching it manipulate the z-index, opacity or positioning to move content from one slide to the next.
You will gain a greater understanding of what is going on under the hood, be able to perform customizations, and find problems faster down the road by digging into as many sliders as you can to learn how they function.

Finding The Right jQuery Slider for You

The only thing more plentiful then the number of jQuery sliders are the number of sites showcasing them. Rather than try to list all of them here (new ones come out every week!), let’s walk through how to find one that’s right for you:
A quick Google search will reveal sliders can be found in a variety of places:

Roundup Posts

Often titled something like “25 Useful jQuery Content Slider Scripts” – they are posts created to collect and review the different sliders available at the time. Read the comments as well as the article to see other people’s opinions on the collection.

Tutorial Sites

Sites that offer up tutorials on building sliders will often times include the final source code of the project so you get a step-by-step guide as to how it is built and the final working result. Unless specifically noted, the source project is just for educational purposes, ask before using in any projects.

Online Marketplaces

CodeCanyon offers an entire category for premium sliders.http://codecanyon.net/category/javascript/sliders

View-Source

Sometimes you will come across a site with a slider and you want to see which plugin they may have used. Since JavaScript is a client-side script, do a view-source of the page and look which JavaScript files are imported, the plugin information should be included at the top of the plugin’s source script with a URL for more information on the plugin for download and documentation.
Be courteous of the effort others have done, read and abide by the license agreements included and give credit where credit is due.

Deciding on a Slider

Choosing a slider is largely dependent on the functionality and options you need and the overall style you are going for. Decide on the type of content you need displayed, how you want users to navigate through it and see which slider best matches your requirements.
Once you have narrowed down your choices, compare the overall script size and check whether is is compatible with all browsers.
Some sliders are offered in a “lite” version such as jQuery Cycle Lite if you’re looking to keep the overall file size down in your project. Often times, the light version is just missing the additional transition effects, sticking with the most popular options available.
If you’re not a jQuery master, choose a slider with great live demos you can download and documentation to help guide you through making your customizations.

Skinning a Slider

One of the great things about using a pre-made slider is that most of them are incredibly easy to redesign according to your needs. This process (usually just called “skinning”) isn’t as hard as it might seem. Usually it requires just editing a simple CSS file – the most complex skinning will usually get is swapping out graphics that you’ve created their the default graphics (like backgrounds and buttons).
In addition to skinning sliders, it’s also worth noting that with most sliders, it’s easy to change the size to fit the website that you’re designing.

Integrating Sliders with an Existing Site

Placing a slider in an existing design is not a single-step process but most slider scripts come with a basic sample page to get started, importing jQuery, CSS, sample content and initializing the plugin with the default settings.
Let’s import jQuery Cycle into a quick sample site created for the purpose of this tutorial.
Download the before and after sites to follow along.

1. Initial Site Structure

The demo site consists of basic HTML, CSS and an image which will be the starting point for integrating the slider.
  • index.html – The sample home page we are using
  • css/screen.css – General style information
  • images/sample_water.jpg – Current static image for the home page

2. Download jQuery Cycle

We will be integrating the jQuery Cycle plugin for this demo.
  • Visit http://jquery.malsup.com/cycle/
  • Download and unzip the latest version to your computer.
  • Copy jquery.cycle.all.min.js to your site in a new /js/ directory

3. Import the Necessary Scripts

Import the jQuery library and the Cycle plugin in the of your site by adding this code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
The first script should be the latest version of jQuery. You can grab it off jquery.com or load it from the Google Libraries as we have done above.
The second script is the plugin source which we placed in the /js/ folder.

4. Add the Slider HTML

Swap out the current static sample_water.jpg image used in the demo site with an unordered list for slides:
<ul id="promo">
    <li><img src="images/sample_water.jpg" alt="Slide One" /></li>
    <li><img src="images/sample_hills.jpg" alt="Slide Two" /></li>
    <li><img src="images/sample_park.jpg" alt="Slide Three" /></li>
</ul>
We will just use three images to get started, note the id=”promo” attribute, we’ll use this later to tell our plugin this is the container of our slides. Since the slides are essentially just a list of related content, a UL tag is a good choice.

5. Add the Optional Slider Navigation

Underneath the unordered list of promos we added above, we will add the navigation to control the slides. The plugin will create the individual navigation links dynamically at runtime as you add and remove slides from the list.
 <div id="promonav">
    <a href="javascript:void(0);" class="next">Next Slide</a>
    <div id="promoindex"></div>
</div> 
The next slide button’s class corresponds to the ‘next’ parameter we will use to advance the slides manually.
The promo index is automatically generated if the ‘pager’ parameter is set in the options. By entering it manually, we can control where it goes on the page in case you wanted it somewhere other than where the plugin places it.

6. Style the Slider

Let’s add CSS to style the slider list. Some sliders like Nivo Slider have a custom stylesheet you can download and get started but for this demo, let’s add our custom CSS directly into the end of the site’s main screen.css file.
/* Remove list formatting from Promo UL/LI */
#promo, #promo li
{
    margin:0;
    padding:0;
    list-style-type:none;
}

/* Styles for the optional promo navigation container */
#promonav
{
    padding:4px;
    background:#eee;
    border:1px solid #e0e0e0;
    margin-top:1px;
}

/* Keep the next button at the right edge */
#promonav .next
{
    float:right;
}

/* Link styles in promo navigation  */
#promonav a
{
    padding:0 3px;
    border:1px solid #eee;
    text-decoration:none;
    outline:0;
    color:#777;
}

/* Style applied on mouseover of promo navigation link(s) */
#promonav a:hover
{
    color:#000;
}
/* The index automatically gets an activeSlide class, use this to indicate the current slide */
#promoindex a.activeSlide
{
    font-weight:bold;
    background:#fff;
    border-color:#ccc;
}

7. Initialize the Plugin:

At this point, we have jQuery and the plugin imported but nothing telling the plugin which element on the page is our slider or what options to include – it needs to be initialized.
Create a file called setup.js and place it in the /js/ directory.
Import it in underneath the jQuery and Cycle scripts you imported in the area of the site earlier in the tutorial.
<script type="text/javascript" src="js/setup.js"></script>
It is important that you import jQuery, jQuery Cycle and then setup.js in that exact order or the plugin will not work.
Inside setup.js add the following code:
$(document).ready(function() {
    $('#promo').cycle({
        fx: 'scrollHorz',
        timeout:    4000,
        speed:      800,
        next: '#promonav .next',
        pager:    '#promoindex',
        height: 200,
        pause: 1
    });
});
Lets me explain what is going on in the code above.
We start out by checking if the document is ready with the document.ready, otherwise the plugin may try to modify elements on the page that are not available or ready.
The next line is telling the Cycle plugin what element we are using as a container of the items we want to cycle through. In our case, the container has an ID of promo so we enter #promo.
The items listed from fx to pause are options we are passing into the plugin. If we do not include any and simply use: $(‘#promo’).cycle(); the plugin would use its default settings. Options are listed in a comma separated list. The number and type of options vary per-plugin but for jQuery Cycle can be found athttp://jquery.malsup.com/cycle/options.html
The next and pager options refer to the navigation we built in step 5 above and can be removed if you do not want to include navigation on the slider.
Download the before and after sites to follow along.

Think Outside the Container

Sliders do not need to be large photo sliders stretching across a page of your site. Use them to display sections of rotating content such as testimonials, your latest tweets or popular blog articles in areas of the site that could benefit from the extra room.
Thanks for reading!