The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

Tabs – mark active and animation

  • # January 14, 2013 at 10:42 am

    Demo, what i made is here –
    but i cannot make two things..

    1) Tab which is active have css class “active”
    2) Animation of switching depending of side – left, right

    Help me please – thank you

    # January 29, 2013 at 4:35 am

    first off you need a class with the name .active and then do something with it so you can see if its really active.


    then just remove the :first and parent() from your click function. you want to remove every class active and then make the clicked a itself active.

    $(‘nav a’).click(function(){
    $(‘nav a’).removeClass(‘active’);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed