-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1テーマ 「パララックス」 サンプルコード #5
Comments
だいぶ詰めが甘いですが、締め切りなので一旦上げます。(PCのみです https://dl.dropboxusercontent.com/u/20608314/demo/jsgirls01/parallax.html ■ 制作にあたって |
parallax 仕様画像cloud_1.png (雲画像)スクロールに対する動きは雲の中で一番目に早い(手前にあるイメージ) cloud_2.png (雲画像)スクロールに対する動きは雲の中で二番目に早い cloud_3.png (雲画像)スクロールに対する動きは雲の中で一番遅く、最下段のビル・木の背景となるよう考慮する tree.png (木画像)要素を2つ用意、2本の表示とする(tree_left/tree_right) スクロール終盤に表示し、1本(tree_left)は左、1本(tree_right)は右へと移動する building.png (ビル画像)スクロール終盤に表示する 配置cloud_1
cloud_2
cloud_3
雲(cloud_1,2,3)について
tree_left, tree_right, buildingビル・木(building/tree_left/tree_right)について最下段時、ブラウザ内の位置関係は下記の配置とする
スクロール最上段時、横の位置はすべてセンター揃えとする
スクロール最下段時、画像の下端とブラウザの下端とを揃えるcss 位置を top で与えるか bottom で与えるか二種類ある。
考え方
|
ハンズオン用のファイルセット上げました |
@w3gjp さんにサンプルコードを用意してもらいました。
https://w3g.jp/sample/jsgirl/parallax
これをベースにみんなもコードを書いてみてほしいです。
ファイルはどこかにアップして、URL含めここに投稿してください。
難易度の調整などを議論していきましょう。
The text was updated successfully, but these errors were encountered: