Skip to content

Commit a4ccdb9

Browse files
committed
google like the logo
1 parent 0679b0c commit a4ccdb9

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20151222094809
2+
# Build: 20151223102436
33

44
CACHE:
55
resources/css/bootstrap.min.css

‎index.html‎

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,33 @@
9898
text-transform: uppercase;
9999
font-size: 3.5em;
100100
}
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+
}
101128
.search-form{
102129
padding: 20px 0;
103130
}
@@ -172,7 +199,7 @@
172199
<body>
173200
<section class="main-container">
174201
<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>
176203
<h5>Search over projects from Github, Bitbucket, Google Code and more to find </h5>
177204
<h5><span class="label label-pill label-success">real-world usage</span> <span class="label label-pill label-danger">variable names</span></h5>
178205
</header>
@@ -488,6 +515,7 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data
488515
var els = {
489516
body: $('body'),
490517

518+
title: $('.main-title>header h1'),
491519
searchForm: $('.search-form'),
492520
searchInput: $('.search-form input'),
493521
searchBtn: $('.search-form button.search'),
@@ -531,6 +559,7 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data
531559
}
532560
function init(){
533561
bindEvent();
562+
renderTitle();
534563
renderLangMunu();
535564
onLocationHashChanged();
536565
renderAnalytics();
@@ -629,6 +658,10 @@ <h5 class="label-warp"><a class="label label-{type}" data-toggle="tooltip" data
629658
renderAnalytics(els.lastInputVal);
630659
}
631660

661+
function renderTitle(){
662+
els.title.addClass('animated');
663+
}
664+
632665
function renderLangMunu(){
633666
var htm = [],storeLang = searchcode.getLang();
634667
storeLang = storeLang?storeLang.split(' '):[];

0 commit comments

Comments
 (0)