Coder Social home page Coder Social logo

sprite's Introduction

css sprite

Fork from iwangx/sprite

最近项目的css3动画图片尺寸较大,于是修改了一下满足自己的需求

原功能:


	css雪碧图简单制作工具
	
	可以通过图片,直接生成sprite文件,并且生成代码
	
	可以通过鼠标点击调整图片位置

	可以添加单张图片,以及删除单张图片

	可以保存为.sprite文件,以后好维护
	

添加功能:

添加‘生成长图’功能,适合于需要制作大尺寸的css3帧动画。(但受GDI限制,图片尺寸最大限制为 65534,所以如果你的图片总长度大于 65534 这个功能还是无法满足你 ╮(╯▽╰)╭ )

由于panel的尺寸限制,当图片的总长度大于 32767 时,会出现图片重叠的现象,
而原来的 ‘生成雪碧图’ 是按照子图片在 panel 内的位置生成总图片的,所以会有图片部分重叠的情况
所以添加了一个 ‘生成长图’ 功能,不是按照图片在 panel 内的位置生成图片,
而是利用每个图片的高度或者宽度,横排列 或者 竖排列 图片,到达制作长图的目的。
注意:这个功能会让你的图片一张挨着一张,图片间没有空隙存在。
‘生成长图’功能与其他功能无关,仅仅是生成长图而已,与 拖动图片,css,sass,less 等功能都无关。
css/sass/less等信息无参考价值

sprite's People

Contributors

iwangx avatar blazingcc 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.