Ajax Loader
HTML
<div class="slides">
1
<div class="slides">
2
  <div class="slide">
3
    <input type="radio" name="slideshow" id="slide1"><label for="slide1">CSS</label>
4
    <div class="content">
5
      <h2>CSS</h2>
6
      <p>Maecenas faucibus mollis interdum. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
7
      </div>
8
    
9
  </div>
10
  <div class="slide">
11
    <input type="radio" name="slideshow" id="slide2"><label for="slide2">HTML</label>
12
    <div class="content">
13
      <h2>HTML</h2>
14
      <p>Vestibulum id ligula porta felis euismod semper. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
15
      </div>
16
    
17
  </div>
18
  <div class="slide">
19
    <input type="radio" name="slideshow" id="slide3"><label for="slide3">JQUERY</label>
20
    <div class="content">
21
      <h2>JQUERY</h2>
22
      <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec ullamcorper nulla non metus auctor fringilla. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
23
    </div>
24
    
25
  </div>
26
  <div class="slide">
27
    <input type="radio" name="slideshow" id="slide4"><label for="slide4">JAVA SCRIPT</label>
28
    <div class="content">
29
      <h2>JAVA SCRIPT</h2>
30
      <p>Donec ullamcorper nulla non metus auctor fringilla. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean lacinia bibendum nulla sed consectetur.</p>
31
    </div>
32
    
33
  </div>
34
</div>
 
CSS
* {
1
* {
2
    box-sizing: border-box;
3
  }
4
 
5
.preload * {
6
  transition: none !important;
7
}
8
 
9
  body {
10
    padding: 30px; 
11
    font-family: "Helvetica Neue", Helvetica, arial, sans-serif; 
12
    background: url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/wild_oliva.png') #333;
13
    line-height: 1.5;
14
  }
15
 
16
  h2 {
17
    color: #fff;
18
    margin-bottom: .5em;
19
    font-size: 1.7em;
20
    font-weight: bold;
21
    text-shadow: 0 1px 0 rgba(0,0,0,1);
22
  }
23
 
24
  .slides {
25
    position: relative;
26
    width: 500px;
27
    height: 250px;
28
    overflow: hidden;
29
    box-shadow: 0 0 10px rgba(0,0,0,.5);
30
    border-radius: 5px;
31
    background: #333;
32
    border: 1px solid rgba(255,255,255,.1);
33
  }
34
 
35
  .slide {
36
    position: absolute;
37
    width: 100%;
38
    height: 100%;
39
    left: 0;
40
    top: 0;  
41
    
42
  }
43
 
44
  .content {
45
    position: absolute;
46
    width: 100%;
47
    transform: translateX(-100%);
48
    top: 0;
49
    opacity: 0;
50
    padding: 20px;
51
    transition: transform .5s ease-out, opacity 1s ease-out;
52
  }
53
 
54
  .content p {
55
    font-size: .85em;
56
    color: #fff;
57
  }
58
 
59
  input[type=radio] {
60
    display: none;
61
  }
62
 
63
  label {
64
    display: block;
65
    position: absolute;
66
    bottom: 0;
67
    line-height: 3em;
68
    width: 25%;
69
    text-align: center;
70
    cursor: pointer;
71
    font-size: .8em;
72
    z-index: 50;
73
    color: #fff;
74
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
75
    font-weight: bold;
76
 
77
background: rgb(135,224,253); /* Old browsers */
78
background: -moz-linear-gradient(top,  rgba(135,224,253,1) 0%, rgba(83,203,241,1) 40%, rgba(5,171,224,1) 100%); /* FF3.6+ */
79
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(135,224,253,1)), color-stop(40%,rgba(83,203,241,1)), color-stop(100%,rgba(5,171,224,1))); /* Chrome,Safari4+ */
80
background: -webkit-linear-gradient(top,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* Chrome10+,Safari5.1+ */
81
background: -o-linear-gradient(top,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* Opera 11.10+ */
82
background: -ms-linear-gradient(top,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* IE10+ */
83
background: linear-gradient(to bottom,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* W3C */
84
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=0 ); /* IE6-9 */
85
 
86
  }
87
 
88
 
89
  .slide:nth-child(2) label {
90
    margin-left: 25%;
91
  }
92
 
93
  .slide:nth-child(3) label {
94
    margin-left: 50%;
95
  }
96
 
97
  .slide:nth-child(4) label {
98
    margin-left: 75%;
99
  }
100
 
101
  input[type=radio]:checked ~ .content {
102
transform: translateX(0);
103
    opacity: 1;
104
  }
105
 
106
  input[type=radio]:checked + label {
107
    background: #333;
108
    color: #ccc;
109
    text-shadow: none;
110
  }
 
JavaScript
$(document).ready(function() {
1
$(document).ready(function() {
2
      
3
 
4
/* the Responsive menu script */
5
  $('body').addClass('js');
6
      var $menu = $('#menu'),
7
          $menulink = $('.menu-link'),
8
          $menuTrigger = $('.has-subnav > a');
9
    
10
  $menulink.click(function(e) {
11
      e.preventDefault();
12
      $menulink.toggleClass('active');
13
      $menu.toggleClass('active');
14
  });
15
 
16
  var add_toggle_links = function() {     
17
    if ($('.menu-link').is(":visible")){
18
      if ($(".toggle-link").length > 0){
19
      }/* js is only used to avoid transition on page load. Thanks to Chris Coyier for the tip. 
20
 
21
http://css-tricks.com/transitions-only-after-page-load/
22
 
23
*/
24
 
25
jQuery(function($){
26
  $('html').removeClass('preload');
27
})
28
      else{
29
        $('.has-subnav > a').before('<span class="toggle-link"> Open submenu </span>');
30
        $('.toggle-link').click(function(e) {   
31
          var $this = $(this);
32
          $this.toggleClass('active').siblings('ul').toggleClass('active');
33
        }); 
34
      }
35
    }
36
    else{
37
      $('.toggle-link').empty();
38
    }
39
   }
40
  add_toggle_links();
41
  $(window).bind("resize", add_toggle_links); 
42
    
43
    });
 

CSS tab Content

CSSDeck G+