-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (48 loc) · 1.31 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
(function() {
'use strict';
// render the default form of the logo
var logo = new MagnetLogo(document.getElementById('logo'));
logo.render();
// render only the mantaray
var logoManta = new MagnetLogo(document.getElementById('logo-manta'));
logoManta.render({
backgroundEnabled: false,
textEnabled: false
});
// render only the mantaray
var logoText = new MagnetLogo(document.getElementById('logo-text'), {
backgroundEnabled: false,
height: 400,
mantaEnabled: false
});
logoText.render();
window.logoText = logoText;
var el = document.getElementById('logo-horizontal');
var logoHorizontal = new MagnetLogo(el, {
horizontal: true,
height: 200,
width: 600
});
logoHorizontal.render();
window.logoHorizontal = logoHorizontal;
// render only the mantaray
var logoAnimated = new MagnetLogo(document.getElementById('logo-animation'));
logoAnimated.render({
backgroundColor: '#00ff00',
mantaColor: '#ff0000',
textColor: '#0000ff',
borderColor: '#ffff00'
});
logoAnimated.animate();
var options = {
height: 500
};
var logoFullBackground = new MagnetLogo(
document.getElementById('logo-full-background'),
options
);
logoFullBackground.fitContainer();
logoFullBackground.render({
backgroundSize: 'cover'
});
}());