Giter Site home page Giter Site logo

sapphire-vector's Introduction

Pokemon Sapphire Opening Vectorized

This is an animation I made of the opening to Pokemon Sapphire. I traced individual parts in Inkscape, then put them together in HTML and animated them in CSS.

See the final product here.

Build

The Makefile does the following:

  • CSS is minified with csso
  • SVGs are optimized with svgo
  • a NodeJS script I wrote modifies the SVGs to make them suitable for inlining
  • the CSS and the SVGs are inlined into the HTML file

All this is output into the optimized folder, with the final product going into index.html, which is all that is needed to be deployed.

Browser Support

Hypothetically this should work in any modern browser supporting CSS 2D transforms, assuming the device it's being run on can handle all the elements. Unfortunately there are some weird issues.

Works best in Chrome.

Firefox is good except for some performance issues on one or two elements.

Edge is pretty good as well, similar to Firefox. (Haven't tested in IE.)

Safari is not great; it seems to calculate the basis for some transforms on initial load, so some transforms are weird when the window is resized after the page is loaded. I haven't tested on Safari on iOS, but I'd imagine it has similar issues (as would Chrome on iOS).

Also Safari mangles the grass-patch continuous roll thing (I think due to timing issues), so I'm forced to make it overlap a bit for compatibility's sake.

sapphire-vector's People

Contributors

kyle-rb avatar

Stargazers

Kumaran avatar Alcides Queiroz avatar

Watchers

James Cloos 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.