-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
45 lines (32 loc) · 1.38 KB
/
app.js
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
console.log("hello");
$("#close").hide();
$("#reelbut").on('click', function(){
$(".jumbotron").html('<div class="video"><iframe src="https://player.vimeo.com/video/279542470" width="640" height="272" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></div>');
$("#close").show();
$("#projects").hide();
$("#reelbut").hide();
});
$("#close").on('click', function(){
$("#close").hide();
$("#projects").show();
$("#reelbut").show();
$(".jumbotron").html('<h1 class="display-4">Sound Design & Re-Recording Mixing</h1></div><div id = "str"></div');
$("#str").html("<p id='after'>Sound is the puppet master of emotion. Let's make your audience <i id='feel'>feel</i> your story.</p>");
});
setTimeout(function(){
$("#str").fadeOut( "slow" );
}, 7000);
setTimeout(function(){
$("#str").html("<p id='after'>Sound is the puppet master of emotion. Let's make your audience <i id='feel'>feel</i> your story.</p>")
$("#str").fadeIn( "slow" );
}, 7500);
var string = "Sound is the puppet master of emotion. Let’s make your audience feel your story.";
var str = string.split("");
var el = document.getElementById('str');
(function animate() {
str.length > 0 ? el.innerHTML += str.shift() : clearTimeout(running);
var running = setTimeout(animate, 65);
})();
$(function() {
$('body').removeClass('fade-out');
});