Giter Site home page Giter Site logo

subway's Introduction

Subway

Relax and watch the trains go by.

View live version: Go down to the subway.

What is Subway?

Subway is an experiment in CSS3 animations. Sit back and wait for a train (or two) to cross your browser window from left or right, lighting up the subway tunnel as they pass.

How does it work?

Layered Images

Absolute positioning is used to create a series of z-index ordered layers. From back to front, these layers consist of:

  • Train background lighting effect, created using a linear gradient
  • Back set of subway tunnel columns, a very simple repeated background image
  • Train, created using a series of images (as background images)
  • Front set of subway columns, again, a simple repeated background image

This image layering creates the effect of a subway train travelling through a tunnel with columns lining either side. Columns are black, thus are invisible on the black background until the train and its background lighting appear.

CSS3 animations

CSS3 animations are used to move the train across and off screen, from either the left or right.

Did you create the artwork?

Yes, all the artwork is my own. It was created using Adobe Photoshop.

Why did you make this?

I like to watch the subway trains go by. I also really like playing with CSS3 animations.

Supported browsers

Chrome, Firefox 5+, IE 10+, Opera 12+, Safari 4.0+.

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.