This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
readme.html
50 lines (46 loc) · 2.16 KB
/
readme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<h1 id="underliner-jquery-plugin">Underliner jQuery Plugin</h1>
<h3 id="underliner">Underliner</h3>
<blockquote>
<p>v1.0.0</p>
</blockquote>
<h3 id="features-">Features:</h3>
<p>Creates animated underline for links.</p>
<h3 id="usage">Usage</h3>
<p>First you need to include necessary files</p>
<pre><code class="lang-html"><script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="underliner.js"></script>
<link rel="stylesheet" href="underliner.css" /></code></pre>
<p>Then simply apply underliner to <a> elements of your choice</p>
<pre><code class="lang-html"><script>
$('.underliner').underliner();
</script></code></pre>
<h3 id="parameters">Parameters</h3>
<pre><code class="lang-html"><script>
$('.underliner').underliner({
direction: 'center' /* 'center', 'left' or 'right', defaults to 'center'
Underline animation starting point. */
});
$('.underliner').underliner({
color: '#f00' /* Underline color, any valid css color.
If omitted underline will be the same color
as the applied element */
});
$('.underliner').underliner({
duration: 400 /* Animation duration in milliseconds, defaults to 200 */
});
$('.underliner').underliner({
show: true /* Element appears underlined instead of animating on hover.
Defaults to false */
});
/* You can apply these parameters in any combination. */
</script></code></pre>
<h3 id="important">Important</h3>
<p>May only be applied <a> elements which displays inline. Since this plugin mimics the background-color, please only use on solid backgrounds.</p>
<p><a href="http://beltslib.net/">beltslib.net</a></p>
<h3 id="dependencies">Dependencies</h3>
<ul>
<li><a href="http://jquery.com/">jQuery</a></li>
</ul>
<h2 id="license">License</h2>
<p>CC0 1.0 Universal Licence</p>
<p>Dependecies have their own licence information. Please view them before use.</p>