-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
210 lines (153 loc) · 4.09 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Cut & Paste Orchestra</title>
<style>
html {
height: 100%;
}
body {
min-height: 100vh;
margin: 0;
padding: 0;
}
#content {
box-sizing: border-box;
margin: 0 2vw;
min-height: 100vw;
text-align: center;
}
#background {
background-position: center top;
background-size: 100%;
position: fixed;
top: 0;
left:0;
width: 100vw;
height: 200%;
z-index: -1;
background-repeat: repeat-y;
background-image: url("background.jpeg") ;
}
.spacer {
height: 50px;
}
.overlay {
height: 20%;
width: 60%;
text-align: center;
}
.download {
height: 20%;
width: 100%;
text-align: center;
border: none;
color: transparent;
text-align: center;
transition-duration: 0.4s;
cursor: pointer;
background-color: transparent;
color: black;
}
.description {
text-align: center;
color: black ; /*rgb(221,214,201); */
margin: auto;
width: 100%;
font-family: courier;
font-size: 20px;
background-color: rgb(256, 256, 256,0.9);
max-width: 1000px
}
.button {
border: none;
color: transparent;
text-align: center;
transition-duration: 0.4s;
cursor: pointer;
background-color: transparent;
margin: 10px;
padding: 10px;
width: 80%;
}
a {
color: black;
}
a:hover {
color: blue;
}
.button:hover {
background-color: rgba(0, 0, 0, 0.8);
color: white;
}
.soundcloud {
width: 40%;
min-width: 330px;
height: 530px;
opacity: 0.9;
}
</style>
</head>
<body>
<div id="content">
<div class="spacer"> </div>
<div class="spacer"> </div>
<img src="title.png" class ="overlay"/>
<div class="spacer"> </div>
<div class="description">
<p>
<br>
the cut & paste orchestra is collection of home-recorded sample-based software instruments
<br>
<br>
if you use the instruments in one of your tunes, send a shout to [email protected]
<br>
<br>
supported formats include Kontakt, EXS-24, and Ableton
<br>
<br>
this project is inspired by pianobook which you can learn more about @ <a href="pianobook.co.uk"> pianobook.co.uk </a>
<br>
<br>
</p>
</div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<iframe class = "soundcloud" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1098289618%3Fsecret_token%3Ds-g0ePSKSeyk5&color=%23ab0000&auto_play=false&hide_related=false&show_comments=false&show_user=false&show_reposts=false&show_teaser=false">
</iframe>
<div class="spacer"> </div>
<a href="https://www.dropbox.com/sh/n3gbygoyophcqei/AABfKUhQOeqMo8hdRWz3I2Ria?dl=1">
<button class="button">
<img src="download1.png" class ="download"/>
</button>
</a>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
</div>
<div id="background"> </div>
</div> </div>
<script>
var background = document.querySelector("#background");
function setTranslate(xPos, yPos, el) {
el.style.transform = "translate3d(" + xPos + ", " + yPos + "px, 0)";
}
window.addEventListener("DOMContentLoaded", scrollLoop, false);
var xScrollPosition;
var yScrollPosition;
function scrollLoop() {
xScrollPosition = window.scrollX;
yScrollPosition = window.scrollY;
setTranslate(0, yScrollPosition * -0.2, background);
requestAnimationFrame(scrollLoop);
}
</script>
</body>
<meta property="og:image" content="preview.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1024">
<meta property="og:image:height" content="1024">
</html>