forked from antoineMoPa/80sgifgenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (114 loc) · 4.13 KB
/
index.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Animated Text Gif Generator</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="page-content">
<h1 class="text-center">Animated Text Gif Generator</h1>
<br>
<col-md-6>
<div class="text-center">
<h3>Gif preview</h3>
</div>
<canvas class="text-canvas hidden"></canvas>
<canvas class="gif-canvas"></canvas>
</col-md-6>
<col-md-6 class="settings">
<div class="text-center">
<h3>Settings</h3>
</div>
<fieldset>
<label>Style</label><br>
<select name="style">
<option value="80">80's</option>
<option value="80-vhs">80's + vhs</option>
<option value="2001">2001</option>
<option value="youtried">You tried</option>
</select>
</fieldset>
<fieldset class="top-text">
<label>Top text</label><br>
<input type="text" name="top-text" value="Are you feeling">
<br>
<label>Size</label><br>
<input type="number" name="top-text-size" value="39">
</fieldset>
<fieldset class="middle-text">
<label>Middle text</label><br>
<input type="text" name="middle-text" value="Animated">
<br>
<label>Size</label><br>
<input type="number" name="middle-text-size" value="70">
</fieldset>
<fieldset class="bottom-text">
<label>Bottom text</label><br>
<input type="text" name="bottom-text" value="yet?">
<br>
<label>Size</label><br>
<input type="number" name="bottom-text-size" value="44">
</fieldset>
<pre class="fragment-error-pre error-pre">
</pre>
<pre class="vertex-error-pre error-pre">
</pre>
</col-md-6>
<clearfix></clearfix>
<col-md-6>
<div class="text-center">
<button name="make-gif">
Make a gif from this
</button>
<h3>Gifs will appear below</h3>
<p>
(be patient)<br>
</p>
</div>
<div class="result-images">
<span></span>
</div>
</col-md-6>
<clearfix></clearfix>
<footer>
<a href="https://github.com/antoineMoPa/80sgifgenerator"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<p class="text-center">
By <a target="_blank" href="https://twitter.com/AntoineMoPa">@antoineMoPa</a><br>
</p>
<p class="text-center text-bold">
Credits:<br>
</p>
<p class="text-center">
The epic image generator that inspired this:<br>
<a target="_blank" href="https://m.photofunia.com/effects/retro-wave">
Retro-Wave at PhotoFunia
</a>
</p>
<p class="text-center">
Some fonts at Google webfont:<br>
Contrail One, Kaushan Script & Monoton
</p>
<p class="text-center">
This awesome js gif conversion library:<br>
<a target="_blank" href="https://github.com/jnordberg/gif.js">gif.js</a>
</p>
</footer>
<script name="vertex-shader" type="text/plain">
// Vertex Shader
attribute vec3 position;
varying vec2 UV;
varying vec3 v_position;
uniform float time;
void main(){
v_position = position;
UV = vec2((position.x+1.0) / 2.0, (position.y + 1.0)/2.0);
gl_Position = vec4(v_position.x,v_position.y, 0.0, 1.0);
}
</script>
<script src="js/lib/base.js"></script>
<script src="gif-export/lib/gifjs/gif.js"></script>
<script src="js/main.js"></script>
</body>
</html>