GithubHelp home page GithubHelp logo

gka-tpl-percent's Introduction

gkatemplatew

gka-tpl-percent

gka 文件生成模板,一键式图片资源优化,生成序列帧动画文件。

  • 输出 css 百分比动画文件
  • 使用该方案支持 移动端多倍图适配自适应缩放雪碧图
  • 结合 -u 支持 相同帧图片复用✓ (可选) 
  • 默认开启 开启合图优化

示例预览示例代码

相关文章:gka 一键制作自适应等比缩放的雪碧图动画

说明

该模板适合在动画帧图片间是跳跃性的,如上面 example ,对于图片帧前后是连续像素位移的,请使用canvas、studiojs模板进行处理支持自适应,无需支持自适应可使用css模板结合 -s 实现雪碧图动画。

Install

$ npm install -g gka                # install gka

Usage

$ gka <dir> -t percent [options]

Example

$ gka E:\gka-test\img -t percent
BeforeAfter

./img
├── hello-01.png
├── hello-02.png
├── hello-03.png
├── hello-04.png
├── hello-05.png
└── ...

./gka-img
└── gka.html
└── gka.css
└── img
    └── gka_sprites.png

Use GKA

https://github.com/gkajs/gka

gka-tpl-percent's People

Contributors

joeyguo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

eric-seekas

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.