-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.html
202 lines (195 loc) · 4.41 KB
/
view.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
<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
.layer1{
position:absolute;
width:4800px;
height:600px;
background-image: url("./images/background_oic.png");
background-position:0 -600px;
z-index:-9999;
transition-property:background-position;
transition-duration:1s;
transition-timing-function: cubic-bezier(0.7, 0, 1.0, 1.0);
}
.layer1.animation{
background-position:-600px 0px;
}
#logo{
position:absolute;
left:590px;
width:535px;
height:129px;
background-image:url("./images/TitleLogo.png");
}
.logo{
top:120px;
transition-property: opacity, top;
transition-duration:1s;
transition-timing-function:ease-out;
transition-delay:0.5s;
opacity:0;
}
.what{
position:absolute;
left:1040px;
top:150px;
width:500px;
height:300px;
background-color:#FFF;
padding:5px;
border-radius:1em;
box-shadow:3px 3px 5px 5px rgba(0,0,0,0.3);
-webkit-transform:scale(0.15);
transition-property:top, left, -webkit-transform, opacity;
transition-duration:0.5s;
transition-timing-function:ease-out;
}
.what.animation{
top:100px;
left:1150px;
-webkit-transform: scale(1);
}
.what.upanimation{
top:20px;
left:1600px;
}
.what h1{
margin:5px;
font-size:0.9em;
padding-left:0.5em;
border-bottom:2px solid #AAF;
}
.what h2{
margin:0.1em;
font-size:1.8em;
color:rgb(139, 26, 26);
}
.what p{
padding-left:1em;
margin:5px;
font-size:1em;
}
.what dl{
margin-top:2em;
margin-bottom:10px;
padding-left:1em;
}
.what dt{
float:left;
clear:left;
width:7em;
}
.what dd{
}
.scroll{
position:absolute;
top:0;
left:100px;
}
.scrollx{
top:10px;
}
.scrolly{
top:50px;
}
.logo.animation{
top:100px;
opacity:1;
}
.hide{
opacity:0;
}
#footer{
position:absolute;
width:4800px;
top:600px;
background-color:#DDD;
}
</style>
<script type="text/javascript">
$(function(){
window.stratum = 0;
//ページ読み込み時のアニメーション
$('#logo').addClass('animation');
$(window).scroll(function(){
var y = $(this).scrollTop();
var x = $(this).scrollLeft();
$('.scrollx').text("x:" + x + 'px').css('left',(x + 50)+"px");
$('.scrolly').text("y:" + y + 'px').css('left',(x + 50)+"px");
if(x < 450){
$('#logo').addClass('animation');
}else{
$('#logo').removeClass('animation');
}
if(x > 550){
showDescription();
}else{
hideDescription();
}
if(x < 1100){
downStairs();
}else{
upStairs();
// hideDescription();
}
});
function linear(a, x, b){
return Math.round(a * x + b);
}
function showDescription(){
$('.what').addClass('animation');
}
function hideDescription(){
$('.what').removeClass('animation');
}
function upStairs(){
$('.layer1').addClass('animation');
$('.what').addClass('upanimation');
}
function downStairs(){
$('.layer1').removeClass('animation');
$('.what').removeClass('upanimation');
}
function hide(className){
className.forEach(function(e){
$(e).addClass('hide');
});
}
function show(className){
className.forEach(function(e){
$(e).removeClass('hide');
});
}
});
</script>
</head>
<body>
<div id="container">
<div class="layer1"></div>
<div id="logo" class="logo"></div>
<div class="what">
<h1>ICT部とは?</h1>
<h2>自分たちで話し、学び、創造する。</h2>
<p>ITC部はシステム開発の部活動です。<br>
システム開発に興味のある方、<br>
ないしは学習の進め方がわからなくて困っている方</p>
<p>ICT部に参加し、今より一歩進んだ開発を体験しませんか?</p>
<dl>
<dt>活動日時</dt>
<dd>毎週 月曜日・木曜日 16:30〜</dd>
<dt>場所</dt>
<dd>5-A教室</dd>
</dl>
</div>
<p>ringo</p>
<p class="scroll scrolly">y:-</p>
<p class="scroll scrollx">x:-</p>
<div id="footer">
<h3>Copyright © 2014 OIC - 大阪情報コンピュータ専門学校 ITCreate部 All Rights Reserved.<h3>
</div>
</div>
</body>
</html>