"title"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <h1 class="row skew-title"> <span>S</span><span>K</span><span>E</span><span>W</span><span>E</span><span class="last">D</span>   <span>T</span><span>E</span><span>X</span><span class="last">T</span>   <span class="alt">C</span><span class="alt">S</span><span class="alt">S</span><span class="alt last">3</span> </h1> <p class="row row--intro">Add some depth to page titles with CSS3 'SkewY' transform and optional JS hover.</p> </div> <script> (function() { $('.skew-title').children('span').hover((function() { var $el, n; $el = $(this); n = $el.index() + 1; $el.addClass('flat'); if (n % 2 === 0) { return $el.prev().addClass('flat'); } else { if (!$el.hasClass('last')) { return $el.next().addClass('flat'); } } }), function() { return $('.flat').removeClass('flat'); }); }).call(this); </script>
.row--intro { padding-top: 20px; font-size: 16px; line-height: 28px; font-weight: 300; color: #fff; opacity: 0.4; } .row--intro span { font-size: 11px; } .skew-title { font-size: 25px; } .skew-title span { position: relative; display: inline-block; width: 40px; height: 50px; margin: auto; z-index: 2; text-align: center; color: #fff; font-family: 'roboto condensed'; font-weight: 700; font-size: 35.714285714285715px; line-height: 50px; -webkit-transform: skewY(-15deg); transform: skewY(-15deg); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transition: all 0.2s; transition: all 0.2s; cursor: default; } .skew-title span:after, .skew-title span:before { display: block; top: 0; left: 0; width: 40px; height: 50px; position: absolute; background: #185a81; content: ' '; z-index: -1; -webkit-transition: all 0.2s; transition: all 0.2s; } .skew-title span:before { background: rgba(0,0,0,0.1); -webkit-transform: skewY(15deg); transform: skewY(15deg); -webkit-transform-origin: 0 0; transform-origin: 0 0; } .skew-title span:nth-child(even) { background-color: #144c6e; -webkit-transform: skewY(15deg); transform: skewY(15deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; color: #d9d9d9; } .skew-title span:nth-child(even):after { background-color: #144c6e; } .skew-title span:nth-child(even):before { -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: skewY(-15deg); transform: skewY(-15deg); } .skew-title span.flat { -webkit-transform: skewY(0); transform: skewY(0); color: #fff; } .skew-title span.flat:before { -webkit-transform: skewY(0); transform: skewY(0); } .skew-title span.flat:nth-child(even):after { background-color: #185a81; } .skew-title span.alt:after { background-color: #b94a2c; } .skew-title span.alt:nth-child(even):after { background-color: #9d3f25; } .skew-title span.alt.flat:nth-child(even):after { background-color: #b94a2c; }

Related: See More


Questions / Comments: