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
2122https://www.npmjs.com/package/jquery.marker-animation
2223
2324``` bash
2425npm 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
0 commit comments