Giter Site home page Giter Site logo

css-true-titles's Introduction

CSS True Titles

A title sequence made with CSS in the style of the True Detective opening.

http://lab.tylergaw.com/css-true-titles/

I wrote an article talking in more detail about the masking and animations. It lives here: http://tylergaw.com/articles/css-true-titles

Image showing the title cards

Problems

  • CSS mask support is currently limited to blink/webkit. I'm only seeing it work on Chrome (v32.x) and Mobile Safari (whatever version is on iOS 7.x) http://caniuse.com/css-masks
  • High Res/Retina displays hate this demo. I think it's just too much moving around. Those big raster images and masks flake out from time to time.
  • File size. I'm using a number of large images with transparency so the page weight is about 4.3 MB. Ouch.
  • Crashes Mobile Safari and Chrome for iOS pretty consistently.

Reference

What did I learn?

  • Strange rendering issues occur when attempting heavy lifting on Retina displays
  • background-size: cover Is very helpful for keeping images from becoming too small, however using it is also tricky. It's much harder to have things appear exactely how you want. You kind of have to let go and allow the browser to do what it wants.
  • When moving things with CSS always use translate in place of updating left/right/top/bottom position or background-position. Paul said it here On this demo I saw it first hand. When not using translate animations were choppy and CPU usage was through the roof.

css-true-titles's People

Contributors

tylergaw avatar

Watchers

 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.