summaryrefslogtreecommitdiff
path: root/index.html
blob: 6e8ebd7cb6b83be76be360554779c51432dbcc95 (plain)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html>
<head>
<title>Jules LaPlace</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<style type="text/css">
html,body { width: 100%; height: 100%; margin: 0; padding: 0; }
body { background: #f6f8fd; overflow: hidden; font-family: 'trebuchet ms'; }
#container { width: 100%; height: 100%; position: absolute; top: 0; left: 0;
  transform-origin: 50% 50%;
  perspective: 50;
  -webkit-perspective: 50;
}
#parent { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
#parent div { position: absolute; top: 0; left: 0; width: 90px; height: 20px; opacity: 1.0; } #parent div:nth-child(10n+0) { background: #f12; } #parent div:nth-child(10n+1) { background: #ff3; }
#parent div:nth-child(10n+2) { background: #f83; }
#parent div:nth-child(10n+3) { background: #38f; }
#parent div:nth-child(10n+4) { background: #def; }
#parent div:nth-child(10n+5) { background: #ccf; }
#parent div:nth-child(3n+0) { height: 10px; }
#parent div:nth-child(3n+1) { height: 20px; }
#parent div:nth-child(3n+2) { height: 30px; }
#parent div { background: #fff; }
#content {
  position: fixed;
  top: 40%; left: 50%;
  transform: translate3d(-50%,-50%,0);
  z-index: 2;
  font-size: 13px;
  min-width: 400px;
  border: 1px solid #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
@media (max-width: 700px) {
  #content {
    min-width: 350px;
    width: 95%;
    top: 40%;
  }
  #inner {
    padding: 10px 0px;
    transform: translateZ(0);
  }
  #parent div {
    opacity: 0.1;
  }
}
#inner {
  padding: 30px 50px;
  margin: 2px;
  background: white;
  box-shadow: 0 0px 2px rgba(0,0,0,0.4);
}
h1 {
  margin-top: 5px;
  font-family: georgia;
  font-weight: normal;
  font-size: 18px;
}
h2 {
  font-family: georgia;
  font-style: italic;
  font-size: 13px;
}
#links {
  line-height: 1.5;
}
#links > a {
  display: block;
}
#asdf {
  margin-top: 0;
  padding-top: 10px;
  font-size: 10px;
  border-top: 1px solid #ddd;
}
small {
  font-style: italic;
  color: #222;
  float: right;
}
a, a b { color: #02f; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #208; }
.right { float: right }
</style>
</head>
<body>

<div id="container">
<div id="parent"></div>
</div>

<div id="content">
<div id="inner">
<h1>Jules LaPlace</h1>

<p id='links'>
<a href="https://asdf.us/asciiblaster/">
ASCIIBlaster
<small>advanced ASCII art tool</small>
</a>

<a href="http://panke.gallery/exhibition/streamInstreamOut">
Stream In / Stream Out
<small>panke.gallery, april '18</small>
</a>

<a href="https://flufrecs.bandcamp.com/album/aa0004" target="_blank">
AA0004
<small>two track ep on fluf</small>
</a>

<a href="http://asdf.us/harp/">
Harp
<small>draw your own instrument</small>
</a>

<a href="http://asdf.us/triangle/">
Triangle
<small>mystical lambdoma matrix</small>
</a>

<a href="http://vvalls.com/">
VValls
<small>draw yr own 3D art gallery</small>
</a>

<a href="http://scannerjammer.com/">
ScannerJammer
<small>Second Internet chat</small>
</a>

<a href="http://wheresthepixel.com/">
Where's the Pixel?
<small>the pixel that went viral</small>
</a>

<a href="http://pomme.us/">
Pomme.us
<small>Apples to Apples with gifs</small>
</a>
</p>

<div id="asdf">
<span class='right'>
<a href="http://asdf.us/"><b>asdf.us</b></a>
</span>
<a id="address">@</a>
<a href="https://soundcloud.com/juleswelter">sc</a>
<a href="https://github.com/julescarbon">gh</a>
<a href="https://twitter.com/cosmicsands">tw</a>
</div>
</p>
</center>

</td></tr>
</table>
<script>address.setAttribute("href", "mailto:julescarbon&#x40;gmail.com")</script>
</div>
</div>

</body>
<script type="text/javascript" src="/grid/util.js"></script>
<script type="text/javascript">

var c = document.getElementById("container");
var p = document.getElementById("parent");
var squares = [];
var squareCount = 150;

var mx = 0.5;
var my = 0.5;
function init(){
  var i = squareCount;
  while (i--) {
    populate();
  }
  loop();
  document.addEventListener('mousemove', function(e){ mx = e.pageX/window.innerWidth; my = e.pageY/window.innerHeight })
}
function populate () {
  var ww = (randInt(150) + 10)
  var d = document.createElement("div");
  var x = randInt(window.innerWidth - ww);
  var y = randInt(window.innerHeight - 30);
  var z = randInt(-400) + 50;
//  var translation = "translate3d(" + [x,y,z].join("px,") + "px)";
  var r = randWidth(20) - 10;
  var translation = "translate3d(" + [x,y,z].join("px,") + "px)" // scale3d(" + [x,y,z].join("px,") + "px) rotateY(" + r + ")";
  d.style.webkitTransform = translation;
  d.style.width = ww + "px"
  d.style.height = (randInt(20) + 10) + "px"
  p.appendChild(d);
  squares.push({ div: d, translation: translation });
}

var r = 40000;
var start = r * 0.5;
var mmx = mx, mmy = my;
function avg(a,b,n){ return (b*n+a)/(n+1) }
function loop(t){
  requestAnimFrame(loop);
  t = t;
  start = start || t;
  mmx -= (mmx - avg(mx, mmx, 15)) / 10;
  mmy -= (mmy - avg(my, mmy, 15)) / 10;
  var dt = start - t + r * 0.4
  var rotation = -1 * (dt / r * 360 / 20 + 10*(2*mmx-1) + 5*(2*mmy-1)) % 360;
  c.style.webkitTransform = "rotateY(" + rotation + "deg)"
  // p.style.webkitTransform = "translateZ(5000px)";
  // p.style.webkitTransform = "rotateY(" + 360-rotation + "deg) translateZ(500px)";
  for (var i = 0; i < squareCount; i++) {
    squares[i].div.style.webkitTransform = squares[i].translation + " rotateY(" + (360-rotation) + "deg)";
  }
}

function randInt(n) { return Math.floor(Math.random()*n); }
function randWidth(n) { return randInt(n) - n/2; }

init();

</script>
</html>