Giter VIP home page Giter VIP logo

pixel-art-react's Introduction

Pixel Art to CSS

Did you know that you can draw and animate pixel art using CSS?

pixel-art-react is a handy and intuitive tool, that can help you to design your awesome drawings and animations!

Try to draw some pixels on the screen, pixel-art-react will generate the CSS code using box-shadow property.

Create as much drawings as you want in your project adding new frames and then check them in motion! it will use CSS keyframes to get the animation done and the CSS code will be ready to use in your HTML blocks.

Please check the following example:

pixel-art-react

The app layout is responsive and adjust itself to the screen width. You can see different layout examples (desktop and mobile) in the screenshot.

The project is built with React, Redux and ImmutableJS. Trying to avoid side-effects in a functional way of programming.

You will be able to load, save, import, export projects, undo redo your actions, change grid properties, share your drawings/animations and download them, everything in a very easy and fast way.

Check the results of this simple project:

See it live at pixelartcss

Example

You can find an example project data ready to import here.

In addition a project will be loaded by default, check this out clicking on the LOAD button. Of course you can delete this project anytime you want.

Technical overview

This application has been built with the following technologies:

  • React: Library to build the UI
  • Redux: Implements a Flux like architecture
  • ImmutableJS Helps to keep the data immutable
  • PostCSS Handle the app CSS
  • NodeJS + Express (Server side to build an universal application, create and serve the generated drawings)

Installation

npm install

Development

If you just want to develop the interface with no need of back-end side, take advance of webpack-dev-server and react-hot-loader.

npm run development

Deploy

Create the final build and run the generated react html on a express server making in an isomorphic way.

npm run deploy

npm run server

A config.json is needed for deployment with the Twitter and express keys.

Testing

npm run test

Contributing

Help me to improve it, share and enjoy :)

Please create a Github issue if there is something wrong or to be improved. Pull request are also welcome and they can be created to the develop branch.

License

MIT Copyright © 2016 Javier Valencia Romero (@jvalen)

pixel-art-react's People

Contributors

delebedev avatar jvalen avatar michaelrambeau avatar scriptonomy avatar tbranyen 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.