Main Menu

How to Create an Image Slider using Photoshop & jQuery

Undoubtedly, image slider is one of the most commonly used elements in the business web design, due to its relatively large size that is able to draw the visitor’s attention once they arrive the site. Though the web has started to rethink about the usability of the image slider, it’s still considered as a must-learn for the newcomer of the web design industry.

In this web design tutorial, we will learn to create custom image slider above using Photoshop, which you can preview the final result from here. Not only will we illustrate it in Photoshop, we will also turn it into a functional design by converting it into HTML/CSS and adding jQuery for its awesome sliding effect.

Sounds like a lot of complicated bits involved, but in fact it’s pretty straightforward and very easy to understand, let’s get started then!

More interested about adopting an image slider and customize it on the way? Here are posts dedicated for you.

This is the result. The slider base now has a nice frame with soft shadow behind it.

Step 3

Add a photo and place it above the slider base. Hit Ctrl + Alt + G to convert it into Clipping Mask and insert the photo into the slider.

Step 4: Ribbon

Draw a rectangle shape with color #f4e1ae to be used as a ribbon.

Double click the shape’s layer and activate Bevel and Emboss, Gradient Overlay, and Pattern Overlay with following settings.

This is the result after adding Layer Styles.

Step 5

Let’s add paper texture onto the ribbon to make it more realistic. Place texture on top of the ribbon shape. Convert it to Clipping Mask by pressing Ctrl + Alt + G.

Step 6

Let’s paint some shadows and highlights onto the ribbon. Create new layer above the ribbon. Paint black on lower part of the ribbon. Convert it to Clipping Mask (Ctrl + Alt + G) and then reduce its Opacity to 10%.

Step 7

Repeat previous process to upper part of the ribbon. But this time, add highlight by painting white and then reduce its Opacity to 50%.

Step 8: Stitches

Activate Pencil Tool. Hit F5 to open Brush setting. Set brush size to 1 px and increase the spacing until we get a dotted line on the preview area.

Step 9

Draw 1 px black line on top of the ribbon. Reduce its Opacity to 20%. Duplicate layer by pressing Ctrl + J. Hit Ctrl + I to invert its color. Increase Opacity to 50%. Activate Move Tool and then press down arrow and left arrow once to nudge it.

Here’s the result viewed at 100% magnification.

Step 10

Repeat this process to draw other stitches on another side of the ribbon.

Step 11: Add Ornate Shape

Set foreground color to gray. Use soft brush with size 1 px to draw an ornate shape. Be creative, you can use any shape you like. Next to it, draw a 1 px line and then erase its outer edge using a soft Eraser Tool. Duplicate the line, flip it horizontally, and place it on the other side.

Step 12

Select all ornate layers and merge it into one layer by pressing Ctrl + E. Duplicate shape and then place it under the original ornate shape. Hit Ctrl + I to invert its color. Activate Move Tool and then press down arrow once to nudge it 1 px down.

Step 13: Photo Information

Type photo data inside the ribbon.

Step 14: Navigation

Next, we’ll draw some circles for slide navigation. Draw a circle shape with color: #8d877c on lower part of the ribbon.

Add Inner Shadow using following settings.

This is the result. The circle is turning into a shallow hole now.

Step 15

Hold Alt and then drag circle shape layer to duplicate it.

Step 16

Let’s set active condition on one of these links. Select one of the circle and change its color to #bebbb5. Add Inner Shadow, Gradient Overlay, and Stroke.

Step 17

Hold Ctrl and then click on the ribbon base thumbnail in the Layers Panel. Create new layer under the ribbon and fill it with black. Activate Move Tool and hit left and down arrow a few times.

Step 20

Step 21

Step 22

Use Pen Tool to draw back part of the ribbon. Set its color to #b68f63. Place it behind the slider.

This is the result viewed at 100% magnification.

Step 23

Duplicate the shape we have just created and place it behind the top of the ribbon. Flip it vertically.

Step 24: Final Result in Photoshop

This is our final result in Photoshop. Next, we will continue to code it into a functional slider.

Part II – Converting Into HTML/CSS

Step 25 – Setting Up Files

Create a new folder called My-Photo-Slider. Inside this folder, create a new blank HTML document (index.html), blank stylesheet (style.css),
and folder for images (img). We also need to include jQuery library and Nivo Slider plugin to the folder. As we use HTML5 markup, we need to add an IE hack to enable HTML5 elements on IE 8 or below. We’ll use a script called Modernizr to accommodate IE.

Step 26 – Basic HTML Markup

Open index.html in your favourite code editor. Define the DOCTYPE (we use HTML5), head elements (where we
add the title of the documents and link CSS and JavaScript (jQuery Library, Nivo Slider, and Modernizr). We also add a div wrapper
(to center the layout), header element, and slide wrapper.

Step 27 – Slice PSD

Open the PSD mockup and slice out all of the necessary images. For the picture, let’s grab following pictures from sxc.hu (login required, if you don’t have an account yet,
you can sign up for free). Resize all images to 920×430 px. Put all the images into the image folder (img).