Git Product home page Git Product logo

mazemazecolor's Introduction

Safari(iOS8~)のバウンススクロールを利用したコンテンツ

下の図のバウンススクロールして空いた隙間の部分

こちら通常であれば

body {
  background-color:#FF0000;
}

で好きな色を設定できます。 (画像やグラデーションは不可)

さらになんと、iOS8~の場合この部分を動的に変えてもちゃんと反映されるのをたまたま発見しまして、 一見あまりにも細かすぎる部分なのですが、何か粋な演出のひとつとして使えないかと思いまして、 こんなコンテンツをつくってみました。

※iPhone(iOS8~)
http://ikeryou.jp/works/mazemaze/
・タップでランダムに色変更
・ディーププレスで彩度を変更

使い方

<a href=""http://ikeryou.jp/works/mazemaze/" target="_blank">

画面上下の色の合計した色を、バウンススクロールで生じた隙間に反映させてます。 そして、さらにスクロールを続けていくと、例えば下にスクロールし続けていき、 画面下の色が追い出されるにつれて、隙間に反映させていた色から画面下の色を引くことで、 2色の合計値の割合をバウンススクロールでコントロールできるコンテンツです。

非常にマニアックで気付きにくい部分ですが、 うまく演出に落とし込めれば、 意識の高いwebコンテンツになる事間違いなしです sarafi(iOS8~)限定なので敷居は高いですが、、、

対応端末

  • safari(iOS8~)

mazemazecolor's People

Contributors

ikeryou avatar

Stargazers

Yukihiko Okuyama avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.