Skip to content

Commit 28dc148

Browse files
Merge pull request #70 from technote-space/release/v1.3.12
Release/v1.3.12
2 parents 630ec58 + e8d32ec commit 28dc148

File tree

14 files changed

+354
-48
lines changed

14 files changed

+354
-48
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
node_modules/
22
coverage/
33
.idea/
4-
jquery.marker-animation.min.js
4+
/jquery.marker-animation.min.js
5+
/travis-ci
6+
/gh-pages
7+
.work/
8+
composer.lock
9+
!/bin

.npmignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
src/
44
__tests__/
55
node_modules/
6-
marker-animation.gif
7-
stripe.png
86
_config.yml
97
jest.config.js
108
jest.setup.js
11-
yarn.lock
9+
yarn.lock
10+
composer.json

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,23 @@ jobs:
8383
secure: E2n0AGDW4zKOhf0vfEjI+2L9tPw4SuW3vknG4DDYbkLCLZXRi0XZ16qhIuZShKtXhTDVgTYcM9SCcsdv5PU3FMcMpg3rftzjXIER+pZktPhQoMncrbIY43G7rDInsUSyOfETWcXXEVDSs6/l50YXYwPeKn7fxgom6g16di5tzfKC7U0Ud39BvZXl7LJYUwb+pDtJ4gATJkd8GhyZ+fyZ+nVvSWdEvFBf2tru/2YbnH8U2Y8J2lcWl2RjHpwz8xKYTmak6BRmN9WLrpNeSUAzzus9TCe4c7l+pY4Na4uGBnC1c/8VR46eNHkIRGEgNoxwWMlbv60iSTqnMH2//2l3Rj55HBaHzzlNsRPWteKSPoj13hN9yp1/LqJsDBW3ga+p+7hjt+JEgQYh1y+sa/GlvMYsX7vyYwipOBtSw9zSUmOj/b8NGLqb+sL6a3Pjr0ObKcjojrE6US8FPTLwukRdLxYXF8wYN5EWOo50UXdImFYqmeKfdE/Vluq2/pyZA3MozsffBY6rv4/lNjuIS29dIt2lm+I79Zr/Q4VZjS7Sm4Cckd/c156HQX7uPZLKfHmFOoyZxSvLiJTh5fiSiHVbVl6jqO3yC6qx9FdJvLQKXboSgj00GXZWtebUuua6HW6Bf2XKDW+WN7cXSp2wu5TMLoXGLnVFDrfKBFDKzrMzCn0=
8484
on:
8585
tags: true
86+
87+
- stage: deploy
88+
language: node_js
89+
node_js: '11'
90+
dist: trusty
91+
env:
92+
- GH_PAGES_TITLE="jQuery Marker Animation"
93+
- GH_PAGES_TRACKING_ID=UA-78163306-3
94+
script: skip
95+
before_deploy:
96+
- source tests/bin/deploy/env.sh
97+
- bash tests/bin/deploy/gh-pages.sh
98+
deploy:
99+
provider: pages
100+
skip_cleanup: true
101+
github_token: ${GITHUB_TOKEN}
102+
keep_history: true
103+
local_dir: ${GH_PAGES_DIR}
104+
on:
105+
branch: master

README.ja.md

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# jQuery Marker Animation
2+
3+
[![npm version](https://badge.fury.io/js/jquery.marker-animation.svg)](https://badge.fury.io/js/jquery.marker-animation)
4+
[![Build Status](https://travis-ci.com/technote-space/jquery.marker-animation.svg?branch=master)](https://travis-ci.com/technote-space/jquery.marker-animation)
5+
[![Coverage Status](https://coveralls.io/repos/github/technote-space/jquery.marker-animation/badge.svg?branch=master)](https://coveralls.io/github/technote-space/jquery.marker-animation?branch=master)
6+
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/jquery.marker-animation/badge)](https://www.codefactor.io/repository/github/technote-space/jquery.marker-animation)
7+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/jquery.marker-animation/blob/master/LICENSE)
8+
9+
*Read this in other languages: [English](README.md), [日本語](README.ja.md).*
10+
11+
蛍光ペンで塗るようなアニメーションを表示するjQueryプラグイン
12+
13+
![動作](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/marker-animation.gif)
14+
15+
## Installation
16+
### ダウンロードして利用
17+
[リリースバージョン](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/jquery.marker-animation.min.js)をダウンロードして
18+
```html
19+
<script type="text/javascript" src="/assets/jquery.marker-animation.min.js"></script>
20+
```
21+
のように読み込む
22+
### npmから利用
23+
https://www.npmjs.com/package/jquery.marker-animation
24+
25+
```bash
26+
npm install --save jquery.marker-animation
27+
```
28+
29+
### WordPressで利用
30+
プラグインとして利用できるようにしました。
31+
32+
[WordPress](https://ja.wordpress.org/plugins/marker-animation/)
33+
34+
[GitHub](https://github.com/technote-space/marker-animation)
35+
36+
## 基本的な使用方法
37+
```html
38+
文章文章文章<span class="marker-animation">強調したい文字</span>文章文章文章文章
39+
```
40+
41+
```html
42+
<script>
43+
$('.marker-animation').markerAnimation();
44+
</script>
45+
```
46+
47+
## オプション
48+
### color
49+
マーカーの色を指定
50+
```javascript
51+
$('.marker-animation').markerAnimation({
52+
color: '#fe9'
53+
});
54+
```
55+
### thickness
56+
マーカーの太さを指定
57+
```javascript
58+
$('.marker-animation').markerAnimation({
59+
thickness: '.6em'
60+
});
61+
```
62+
### duration
63+
マーカーを塗るのを完了するまでの時間を指定
64+
```javascript
65+
$('.marker-animation').markerAnimation({
66+
duration: '2s'
67+
});
68+
```
69+
### delay
70+
マーカーを塗るのを開始するまでの時間を指定
71+
```javascript
72+
$('.marker-animation').markerAnimation({
73+
duration: '.1s'
74+
});
75+
```
76+
### font_weight
77+
文字の太さを指定
78+
```javascript
79+
$('.marker-animation').markerAnimation({
80+
font_weight: 'bold'
81+
});
82+
```
83+
デフォルトは太字です。
84+
太字にしない場合はnullを設定してください。
85+
### repeat
86+
アニメーションを繰り返すかどうかを指定
87+
```javascript
88+
$('.marker-animation').markerAnimation({
89+
repeat: false
90+
});
91+
```
92+
trueにすると一度画面から外れて再び表示された際に再度アニメーションが実行されます。
93+
### stripe
94+
ストライプデザインにするかどうかを指定
95+
```javascript
96+
$('.marker-animation').markerAnimation({
97+
stripe: false
98+
});
99+
```
100+
これが `true` の場合はアニメーションなしの動作になります。
101+
![stripe](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/stripe.png)
102+
103+
## 個別に値を指定する方法
104+
`data-ma_[オプション名]` の形式で個別にオプションを指定することが可能です。
105+
### 例1: 色の変更
106+
```html
107+
文章文章文章<span class="marker-animation" data-ma_color="red">強調したい文字</span>文章文章文章文章
108+
```
109+
この例ではマーカーの色が赤色になります。
110+
### 例2: 複数設定
111+
```html
112+
文章文章文章<span class="marker-animation" data-ma_repeat="true" data-ma_font_weight="null" data-ma_delay="2s">強調したい文字</span>文章文章文章文章
113+
```
114+
この例では
115+
* 画面から外れるごとにアニメーションが実行
116+
* 太文字ではない
117+
* 2秒遅れてアニメーション開始
118+
119+
が設定されます。

README.md

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,33 @@
66
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/jquery.marker-animation/badge)](https://www.codefactor.io/repository/github/technote-space/jquery.marker-animation)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/jquery.marker-animation/blob/master/LICENSE)
88

9-
蛍光ペンで塗るようなアニメーションを表示するjQueryプラグイン
9+
*Read this in other languages: [English](README.md), [日本語](README.ja.md).*
1010

11-
![動作](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/master/marker-animation.gif)
11+
jQuery plugin to add under line animation like highlighter.
12+
13+
![Behavior](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/marker-animation.gif)
1214

1315
## Installation
14-
### ダウンロードして利用
15-
[リリースバージョン](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/jquery.marker-animation.min.js)をダウンロードして
16+
### Use from download
17+
Download [Release version](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/jquery.marker-animation.min.js) and enqueue script.
1618
```html
1719
<script type="text/javascript" src="/assets/jquery.marker-animation.min.js"></script>
1820
```
19-
のように読み込み
20-
### npmから利用
21+
### Use from npm
2122
https://www.npmjs.com/package/jquery.marker-animation
2223

2324
```bash
2425
npm install --save jquery.marker-animation
2526
```
2627

27-
### WordPressで利用
28-
プラグインとして利用できるようにしました。
29-
28+
### for WordPress
3029
[WordPress](https://ja.wordpress.org/plugins/marker-animation/)
3130

3231
[GitHub](https://github.com/technote-space/marker-animation)
3332

34-
## 基本的な使用方法
33+
## Usage
3534
```html
36-
文章文章文章<span class="marker-animation">強調したい文字</span>文章文章文章文章
35+
Hello, Dolly <span class="marker-animation">Well, hello, Dolly</span> Hello, Dolly
3736
```
3837

3938
```html
@@ -42,76 +41,78 @@ npm install --save jquery.marker-animation
4241
</script>
4342
```
4443

45-
## オプション
44+
## Options
4645
### color
47-
マーカーの色を指定
46+
Set the color of line
4847
```javascript
4948
$('.marker-animation').markerAnimation({
5049
color: '#fe9'
5150
});
5251
```
5352
### thickness
54-
マーカーの太さを指定
53+
Set the thickness of line
5554
```javascript
5655
$('.marker-animation').markerAnimation({
5756
thickness: '.6em'
5857
});
5958
```
6059
### duration
61-
マーカーを塗るのを完了するまでの時間を指定
60+
Set the time to complete drawing a line
6261
```javascript
6362
$('.marker-animation').markerAnimation({
6463
duration: '2s'
6564
});
6665
```
6766
### delay
68-
マーカーを塗るのを開始するまでの時間を指定
67+
Set the time to start drawing a line
6968
```javascript
7069
$('.marker-animation').markerAnimation({
7170
duration: '.1s'
7271
});
7372
```
7473
### font_weight
75-
文字の太さを指定
74+
Set the thickness of characters
7675
```javascript
7776
$('.marker-animation').markerAnimation({
7877
font_weight: 'bold'
7978
});
8079
```
81-
デフォルトは太字です。
82-
太字にしない場合はnullを設定してください。
80+
\[default = `bold`]
81+
If you do not want to make it bold, please set `null`.
8382
### repeat
84-
アニメーションを繰り返すかどうかを指定
83+
Set whether to repeat the animation
8584
```javascript
8685
$('.marker-animation').markerAnimation({
8786
repeat: false
8887
});
8988
```
90-
trueにすると一度画面から外れて再び表示された際に再度アニメーションが実行されます。
89+
If this set to true, the animation will be executed again when it is off screen and displayed again.
9190
### stripe
92-
ストライプデザインにするかどうかを指定
91+
Set whether to make it stripe design
9392
```javascript
9493
$('.marker-animation').markerAnimation({
9594
stripe: false
9695
});
9796
```
98-
これが `true` の場合はアニメーションなしの動作になります。
99-
![stripe](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/master/stripe.png)
97+
If this set to true, the animation will not be executed.
98+
99+
![stripe](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/stripe.png)
100100

101-
## 個別に値を指定する方法
102-
`data-ma_[オプション名]` の形式で個別にオプションを指定することが可能です。
103-
### 例1: 色の変更
101+
## How to set the value for each
102+
You can set options in the following format.
103+
```
104+
data-ma_[option name]
105+
```
106+
### e.g. Change color
104107
```html
105-
文章文章文章<span class="marker-animation" data-ma_color="red">強調したい文字</span>文章文章文章文章
108+
Hello, Dolly <span class="marker-animation" data-ma_color="red">Well, hello, Dolly</span> Hello, Dolly
106109
```
107-
この例ではマーカーの色が赤色になります。
108-
### 例2: 複数設定
110+
In this example, the color of the line is red.
111+
### e.g Multiple options
109112
```html
110-
文章文章文章<span class="marker-animation" data-ma_repeat="true" data-ma_font_weight="null" data-ma_delay="2s">強調したい文字</span>文章文章文章文章
113+
Hello, Dolly <span class="marker-animation" data-ma_repeat="true" data-ma_font_weight="null" data-ma_delay="2s">Well, hello, Dolly</span> Hello, Dolly
111114
```
112-
この例では
113-
* 画面から外れるごとにアニメーションが実行
114-
* 太文字ではない
115-
* 2秒遅れてアニメーション開始
116-
117-
が設定されます。
115+
In this example, the options below are set.
116+
* Repeat animation
117+
* Not bold
118+
* 2sec delay animation

_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)