ecomfe / archer Goto Github PK
View Code? Open in Web Editor NEW面向移动端的、基于 stylus 的样式工具库
面向移动端的、基于 stylus 的样式工具库
RT.
有些动画的运动幅度太大,略显夸张,实际项目中需要调整才能使用。
现在碰到个问题,使用动画后会自动定义@keyframes
,但相同type
的@keyframes
定义不同内容时,不会被覆盖(始终用第一次定义的动画)。
想要解决这个问题首先type
的名字需要变,于是效果库中的效果与type
便不是一一对应的了。
先记下来,明天想想怎么改。
经测试,480x800
分辨率的 lumia 520 min-resolution()
是 96dpi
,按照计算公式,应该为 144dpi
才对。
应该是个 mobile ie 10 的 bug,这导致网上通用的 retina 图片处理方案对 lumia 520 不生效(本来应该用 retina 图片的)。
目前缺少更多的数据,先 mark 一下,想想后续怎么优化。
两个挺有用的测试地址:
http://bjango.com/articles/min-device-pixel-ratio/
http://brettjankord.com/projects/palmreader/
0.1.x
在真实项目中实践之后,发现不少问题,也有了一些更好的思路。0.2.0
版将会对 Archer 进行重写,不向前兼容(已使用 0.1.1
的项目我会手动升级)。
此次的升级列表:
px_to_rem
太啰嗦,直接改成 rem
,根据传入数值单位自动转换button
、navbar
等,用于快速构建移动站点arrow
应用范围限死了,现在的实现是 arrow-box
position
快捷用法,使用更简便的方式transition
,增加变换效果retina-image
animate
的使用方式,增加幅度控制,升级至 animate.css
的 3.0.0
edp
结合部分,让 stylus
的插件更容易组合进来0.2.0
后,API将会相对稳定了~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.