try to finish the work of day16#20
Merged
Merged
Conversation
Contributor
Author
|
请求贡献代码 |
Owner
|
Thank you! |
soyaine
reviewed
Aug 24, 2017
| @@ -0,0 +1,55 @@ | |||
| # 16 文字阴影的鼠标随动效果 | |||
|
|
|||
| > 本篇作者:©[大史快跑Dashrun](https://github.com/soyaine)——Chinasoft Frontend Web Developer | |||
| 1.在`script`标签中,我们使用3个变量,一个指向`div`元素,一个指向其子元素`h1`,最后一个变量`factor`用于标记阴影距离`h1`中心的距离和鼠标距离`h1`中心距离的比例,用于计算阴影的具体位置。 | ||
|
|
||
| 2.在`hero`元素上监听鼠标移动事件`mousemove`,并添加事件处理的回调函数`shadowMove`. | ||
| ``` |
Owner
There was a problem hiding this comment.
可以在 ``` 后面加上 js,让 GitHub 可以语法高亮
```js
Contributor
Author
|
已做如下修改: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
前14章均独立练习并仿照作者的文档风格一步步练习至此,尝试继续仿照该风格编写制作了day16的编程任务。