Create a Sliding Tabbed Panel with jQuery

with Chris Converse
please wait ...
Create a Sliding Tabbed Panel with jQuery
Video duration: 0s 58m 25s Intermediate


A tabbed panel interface is a classic feature to incorporate in your website design, but they're usually static elements. This course shows how to build a dynamic sliding tabbed panel from scratch using a combination of HTML, CSS, and jQuery. Author Chris Converse leads you through the process from start to finish, from building the containers to styling the text, tab, and panels, and adding click events to make the tabs interactive. He also shows how to incorporate progressive enhancement techniques, so visitors who don't have JavaScript, for example, can still access the content.

Topics include:
  • Creating the main panel and tab containers
  • Adding content to the containers
  • Adding CSS styles to the text and tabs
  • Adding the jQuery $(document).ready() function
  • Assigning click events to the tabs
  • Setting an autostart on page load
  • Creating custom graphics for the panels
  • Assigning custom classes to the HTML elements
  • Reassigning CSS rules with JavaScript
Developer Web

Previewing the final project

- [Voiceover] Hi, I am Chris Converse and in this course we're gonna be building a sliding tab panel for your website. I want to start by showing the final project. We're going to be creating this tabbed panel here, where when I click on individual tabs the content inside is gonna swipe back and forth to animate to the content that corresponds to the tab. We're also gonna set it up so that you can start on a particular tab. So, if I come up here and hit Reload, we're going to actually start this on the second tab, and we'll show you how to set this to any one of the tabs. We're also going to build a styled version of this, as well.

So, if you'd just like to stop at this point in the course with the generic style to apply your own design to, you can, or you can come in here and we can create more customized designs. So in this case, we have custom background graphics and custom type styles and layouts inside of each individual tabbed panel. Now, there is one more aspect we're gonna be building into this course. We're gonna be taking a look at applying progressive enhancement techniques. So, if somebody were to visit this tabbed panel without having JavaScript enabled, this is what the user would see.

They would see all of the content from the panels stacked up. They would still see the CSS in place, but again, they wouldn't have that sort of tabbed panel or enhanced user experience. And then of course, if somebody didn't have JavaScript or CSS, they would see a nicely laid out page like this. And at the end of the course we're going to talk about some of those progressive enhancement techniques and how we can apply some of those to earlier courses I have in the online training library. So I hope this course sounds interesting to you, and if so, let's get started.

please wait ...