Skip to content

Commit ea8641e

Browse files
committed
add logo animation
1 parent 923df01 commit ea8641e

File tree

6 files changed

+237
-14
lines changed

6 files changed

+237
-14
lines changed

css/style.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/*
2-
YUI 3.18.1 (build f7e7bcb)
3-
Copyright 2014 Yahoo! Inc. All rights reserved.
4-
Licensed under the BSD License.
5-
http://yuilibrary.com/license/
6-
*/
7-
81
html {
92
color: #000;
103
background: #FFF
@@ -247,9 +240,20 @@ header {
247240
display: block;
248241
margin: 0 auto;
249242
margin-top: 10rem;
243+
background-repeat: no-repeat;
244+
position: relative;
245+
}
246+
.logo-timeline{
247+
background-image: url(../img/timeline@2x.png);
248+
width: 19.1rem;
249+
height: 11.35rem;
250+
text-indent: -499.95rem;
251+
background-size: 16.1rem;
252+
display: none;
253+
margin: 0 auto;
254+
margin-top: -9.4rem;
250255
background-repeat: no-repeat
251256
}
252-
253257
.description {
254258
margin-top: 1.8rem;
255259
font-size: .7rem;
@@ -312,6 +316,7 @@ header {
312316
}
313317

314318
.mod-des {
319+
color: #065315;
315320
text-align: center
316321
}
317322

@@ -333,7 +338,7 @@ header {
333338

334339
.mod-des__title {
335340
font-size: 1.75rem;
336-
color: #003103;
341+
color: #065315;
337342
margin-top: 2.45rem;
338343
margin-bottom: 2.5rem
339344
}
@@ -345,7 +350,7 @@ header {
345350
}
346351

347352
.mod-des__item {
348-
color: #3262b2;
353+
color: #1ca336;
349354
display: list-item;
350355
font-size: .7rem;
351356
line-height: 1.15rem;
@@ -362,7 +367,7 @@ header {
362367
}
363368

364369
.support-link {
365-
color: #3262b2;
370+
color: #1ca336;
366371
text-decoration: none
367372
}
368373

img/timeline@2x.png

26.1 KB
Loading

img/wx-city@2x.png

24.8 KB
Loading

img/wx-game@2x.png

23 KB
Loading

index.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<meta charset="UTF-8"/>
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
66
<title>WeFlow | 一个高效、强大、跨平台的前端开发工作流工具</title>
7+
<meta name="keywords" content="微信团队, WeChat, 开发者工具, 微信游戏, 微信广告, WeFlow, Electron, App, macOS, electron开发" />
8+
<meta name="description" content="一个高效、强大、跨平台的前端开发工作流工具" />
79
<link rel="shortcut icon" href="/favicon.png"/>
810
<link href="./css/style.css" media="all" type="text/css" rel="stylesheet"/>
911
</head>
@@ -12,7 +14,10 @@
1214
<div class="mod-bg">
1315
<header>
1416
<div class="oracle-bg"></div>
15-
<div class="logo">WeFlow</div>
17+
<div class="logo">
18+
WeFlow
19+
<div class="logo-timeline"></div>
20+
</div>
1621
<div class="description">一个高效、强大、跨平台的前端开发工作流工具</div>
1722
<div class="screenshot">Screenshots</div>
1823
<div class="download-box">
@@ -73,12 +78,20 @@
7378
<a target="_blank" href="https://github.com/weixin/WeFlow" title="Code on Github" class="links__github">Open Source on Github</a>
7479
<a target="_blank" href="https://dribbble.com/hzlzh/projects/380016-WeFlow" title="Sketch on dribbble" class="links__dribbble">Sketch on dribbble</a>
7580
</div>
76-
<div class="license">所有 代码 & 设计 已采用 MIT 授权并开源</div>
81+
<div class="license">所有 源代码 & 设计稿 采用 MIT 授权并开源</div>
7782
</footer>
7883

79-
<div class="ribbon right black fixed">
84+
<div class="ribbon left black fixed">
8085
<a target="_blank" href="https://github.com/weixin/WeFlow">Star me on Github</a>
8186
</div>
8287

88+
<script src="./js/zepto.min.js"></script>
89+
<script>
90+
$('.logo, .description').bind('mouseenter',function(){
91+
$('.logo-timeline').fadeIn();
92+
}).bind('mouseleave',function(){
93+
$('.logo-timeline').fadeOut();
94+
})
95+
</script>
8396
</body>
8497
</html>

js/zepto.min.js

Lines changed: 205 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)