Skip to content

try to finish the work of day16#20

Merged
soyaine merged 2 commits into
soyaine:masterfrom
dashnowords:master
Aug 25, 2017
Merged

try to finish the work of day16#20
soyaine merged 2 commits into
soyaine:masterfrom
dashnowords:master

Conversation

@dashnowords

Copy link
Copy Markdown
Contributor

前14章均独立练习并仿照作者的文档风格一步步练习至此,尝试继续仿照该风格编写制作了day16的编程任务。

@dashnowords

Copy link
Copy Markdown
Contributor Author

请求贡献代码

@soyaine

soyaine commented Aug 24, 2017

Copy link
Copy Markdown
Owner

Thank you!
我稍后看看。

@soyaine soyaine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你再简单修改一下,我 merge 你的 pr ~

Comment thread day16 - mouseMoveShadow/README.md Outdated
@@ -0,0 +1,55 @@
# 16 文字阴影的鼠标随动效果

> 本篇作者:©[大史快跑Dashrun](https://github.com/soyaine)——Chinasoft Frontend Web Developer

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把作者的链接改为你的联系地址

Comment thread day16 - mouseMoveShadow/README.md Outdated
1.在`script`标签中,我们使用3个变量,一个指向`div`元素,一个指向其子元素`h1`,最后一个变量`factor`用于标记阴影距离`h1`中心的距离和鼠标距离`h1`中心距离的比例,用于计算阴影的具体位置。

2.在`hero`元素上监听鼠标移动事件`mousemove`,并添加事件处理的回调函数`shadowMove`.
```

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以在 ``` 后面加上 js,让 GitHub 可以语法高亮

```js

@dashnowords

Copy link
Copy Markdown
Contributor Author

已做如下修改:
1.修改作者地址为自己仓库地址;
2.在readme.md文件中增加代码段高亮。

@soyaine soyaine merged commit fdbf02e into soyaine:master Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants