index.html
5.42 KB
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
<!DOCTYPE html>
<head>
</script>
<meta charset="utf-8">
<title>HTML5 GSAP Ad</title>
<meta name="ad.size" content="width=300,height=600">
<script type="text/javascript">
/*
// IAB source: modified to allow link testing
var clickTag = "https://huntsvillehospitalfoundation.ca";
function getParameterByName(name)
{
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
if (match == null || match == ""){
return clickTag;
} else{
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
}
clickTag = getParameterByName('clickTag');
*/
</script>
<script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
<script type="text/javascript">
window.onload = function() {
eyeBuild.initialize();
}
</script>
<style>
body{
margin: 0;
padding: 0;
width: 300px;
height: 600px;
line-height: 1.2;
font-size: 27px;
letter-spacing: .4;
color: #CD040B;
font-family: "Neue Haas Grotesk", Arial, sans-serif;
/*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
font-style: normal;
}
a{
text-decoration: none;
color: inherit;
}
#border{
position: absolute;
width: 300px;
height: 600px;
border: 1px solid #3191b2;
background-color: #0077a0;/* #0077a0 */
overflow: hidden;
cursor: pointer;
box-sizing: border-box;
/* background: url(img-50.jpg); */
/* background: url(guide2@2x.png) no-repeat center center; */
/* background-size: 300px 600px ; */
}
img{
position: absolute;
}
.img{
position: absolute;
}
.txt{
position: absolute;
left:0;
top:0;
opacity: 0;
}
.txtb{
position: absolute;
left:-300px;
}
#img1{
background-color: black;
width: 807px;
height: 608px;
}
#img1 img{
opacity: 0.85;
}
#txtb1{
top:252px;
}
#txtb2{
top:284px;
}
#cta{
position: absolute;
width: 175px;
height: auto;
left: 28px;
top:295px;
opacity: 0;
}
#logo{
position: absolute;
width: 200px;
height: auto;
left: 35px;
bottom:40px;
opacity: 0;
}
</style>
</head>
<body>
<a href="javascript:eyeBuild.doClick(0)" class="cta">
<!-- <a href="javascript:window.open(clickTag, '_blank');" class="cta"> -->
<div id="border">
<div id="img1" class="img" ><img src="assets/img1@60.jpg" alt="img1@60" width="807"></div>
<!-- <img id="img1" class="img" src="assets/img1@60.jpg" alt="img1@60" width="807"> -->
<img id="txt1" class="txt" src="assets/txt1@2x.png" alt="txt1@2x" width="300">
<img id="logo" src="assets/logo@2x.png" alt="Huntsville Hospital Foundation logo. Healthcare for Life. Here.">
<img id="cta" src="assets/donate@2x.png" alt="Donate Now" width="157">
<img id="txtb1" class="txtb" src="assets/txtb1@2x.png" alt="txtb1@2x" width="242">
<img id="txtb2" class="txtb" src="assets/txtb2@2x.png" alt="txtb2@2x" width="242">
</div>
</a>
<!-- GREENSOCK-->
<script src="assets/TweenMax.min.js"></script>
<script>
var tl = new TimelineMax({repeat:2, repeatDelay:5});
function stage1(){
tl.to("#txt1", .5, {opacity:1, delay:-1 });
tl.to("#img1", 3.5, {x:-450, ease:Power1.easeInOut, delay:-1 });
tl.to("#img1", .5, {scaleX:.385, scaleY:.385, x:0, transformOrigin:"left top", ease:Power1.easeInOut, delay:.5 });
tl.to("#txt1", .5, {opacity:0, delay:-.5 });
// phase 2
tl.to("#logo", .5, {opacity:1, delay:0 });
tl.to("#txtb1", .5, {left:35, ease:Power1.easeOut, delay:-.3});
tl.to("#txtb2", .5, {left:35, ease:Power1.easeOut, delay:-.3});
tl.to("#cta", .5, {opacity:1, top:347, ease:Power1.easeOut, delay:.2 });
console.log( "time: " + tl.totalDuration() );
}
//---------------------
stage1();
</script>
</body>
</html>