Want to see pretty graphs? Log in now!
npm install effeckt
|7||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated 9 months ago|
Performant Transitions & Animations
Ever notice how small flourishes and subtle transitions dramatically increases the value of the experience you enjoy with an app or site?
Designing and developing UIs for the mobile web is tricky, but it's extremely difficult to do that while delivering something that performs at 60fps. The best opportunities to getting jank-free transitions on phones/tablets are CSS transition and keyframe animation based, especially tapping into hardware-accelerated transforms and opacity changes.
@daneden did really nice work with Animate.css but I think the web would benefit if we could take that work to the next level. There's already been fantastic experiments and demos exploring CSS-based transitions, but it's distributed all over.
Originally started at h5bp/lazyweb-requests#122
Issues or Feedback?
Head here → http://github.com/h5bp/Effeckt.css/issues
Work In Progress Demo Page
Head here → http://h5bp.github.io/Effeckt.css/dist/
✭ Contributing & Pull Requests
If you'd like to contribute to the Effeckt.css project (btw you're awesome for doing so) then we suggest you do the following…
- Fork this Repo
- Create a new branch on your forked copy of this project.
- Submit your branch to this repo as a PR.
- Wait for unicorns to appear.
Please keep your commits targeted in a logical fashion in order to keep code review and merges as clean.
General CSS style guide:
- Two spaces
- Prefix classes/variables with
- Data attributes can be
data-effecktor prefixed with that
- Node and npm so we can...
- jQuery manipulates the classes used for the effects.
You'll have to:
- Fork the project and pull down your copy
- Make sure you have the Grunt command-line interface with
npm install -g grunt-cli
grunt devto start watching for file saves & run a local web server at port 8000 (localhost:8000).
Examples To Add
Here's a few pieces of excellent work:
Because there are so many, I expect we could group things by role:
- button/touch effects
- state transition
- modal/notification transition
- attention attractors
This library/framework would come with some goals:
- It provides very little UI. It's only hooks for transitions/animations.
- Designer-curated set of classy and reasonable effects. (no
- Establish browser support guidelines (e.g. Android 2.3 would gracefully degrade)
- CSS performance regression testing (a la bench.topcoat.io)
- Deliver jank-free 60fps performance on target browsers/devices
- If a particular effect cannot deliver target performance (hey
blur()css filter), it cannot be included.
- Guidelines on what to avoid when styling these affected elements (avoid expensive CSS)
- Deliver a builder so users can pull only the CSS they need.
- There is no hover on the mobile web, so any hover-based effects would be excluded or have a tap-based equivalent.
- If you know other transition/animation based demos/experiments that make sense to include here, file a ticket.
- If you're interested in helping to define the API, let's hear it! File a ticket.
- A web-based builder is a must. A command-line builder isn't important for this.