|
98 | 98 | text-transform: uppercase; |
99 | 99 | font-size: 3.5em; |
100 | 100 | } |
| 101 | + .main-title h1.animated span{ |
| 102 | + transition: color 250ms linear; |
| 103 | + } |
| 104 | + .main-title h1.animated span:nth-child(1){ |
| 105 | + color: #3369e8; |
| 106 | + transition-delay: 200ms; |
| 107 | + } |
| 108 | + .main-title h1.animated span:nth-child(2){ |
| 109 | + color: #d50f25; |
| 110 | + transition-delay: 350ms; |
| 111 | + } |
| 112 | + .main-title h1.animated span:nth-child(3){ |
| 113 | + color: #eeb211; |
| 114 | + transition-delay: 500ms; |
| 115 | + } |
| 116 | + .main-title h1.animated span:nth-child(4){ |
| 117 | + color: #3369e8; |
| 118 | + transition-delay: 650ms; |
| 119 | + } |
| 120 | + .main-title h1.animated span:nth-child(5){ |
| 121 | + color: #009925; |
| 122 | + transition-delay: 800ms; |
| 123 | + } |
| 124 | + .main-title h1.animated span:nth-child(6){ |
| 125 | + color: #d50f25; |
| 126 | + transition-delay: 950ms; |
| 127 | + } |
101 | 128 | .search-form{ |
102 | 129 | padding: 20px 0; |
103 | 130 | } |
|
172 | 199 | <body> |
173 | 200 | <section class="main-container"> |
174 | 201 | <header class="main-title"> |
175 | | - <header><a href="./"><h1>Codelf</h1></a></header> |
| 202 | + <header><a href="./"><h1><span>C</span><span>O</span><span>D</span><span>E</span><span>L</span><span>F</span></h1></a></header> |
176 | 203 | <h5>Search over projects from Github, Bitbucket, Google Code and more to find </h5> |
177 | 204 | <h5><span class="label label-pill label-success">real-world usage</span> <span class="label label-pill label-danger">variable names</span></h5> |
178 | 205 | </header> |
@@ -488,6 +515,7 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data |
488 | 515 | var els = { |
489 | 516 | body: $('body'), |
490 | 517 |
|
| 518 | + title: $('.main-title>header h1'), |
491 | 519 | searchForm: $('.search-form'), |
492 | 520 | searchInput: $('.search-form input'), |
493 | 521 | searchBtn: $('.search-form button.search'), |
@@ -531,6 +559,7 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data |
531 | 559 | } |
532 | 560 | function init(){ |
533 | 561 | bindEvent(); |
| 562 | + renderTitle(); |
534 | 563 | renderLangMunu(); |
535 | 564 | onLocationHashChanged(); |
536 | 565 | renderAnalytics(); |
@@ -629,6 +658,10 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data |
629 | 658 | renderAnalytics(els.lastInputVal); |
630 | 659 | } |
631 | 660 |
|
| 661 | + function renderTitle(){ |
| 662 | + els.title.addClass('animated'); |
| 663 | + } |
| 664 | + |
632 | 665 | function renderLangMunu(){ |
633 | 666 | var htm = [],storeLang = searchcode.getLang(); |
634 | 667 | storeLang = storeLang?storeLang.split(' '):[]; |
|
0 commit comments