4 ms·
Self-documenting easing functions
- robin_reala 15y agoThis struck me as rather smart: why bother having images describing the function’s pattern when the function is embedded in the code on the page and browsers can now generate images?
- duopixel 15y agoNice! You can try to replicate the curves on this CSS3 easing tool I built: http://cssglue.com/cubic http://cssglue.com/cubic Not all curves are possible due to limitations in the CSS timing functions.
- robin_reala 15y agoOh hey, that’s nice. Not too long until we’ll be able to use this sort of thing in a cross-browser way as well. Not to say I’m not using it now, it’s just restricted to little styling points.
- revolvingcur 15y agoThe problem with using a property like height to demonstrate easing functions is that negative height is undefined, so the back/bounce/elastic functions don't really demo very well. It makes more sense to use position to demonstrate the curves that overshoot like that.
- windsurfer 15y agoMargin-top works alright, but clutters the screen a bit: https://github.com/windsurfer/jquery-ui/blob/master/demos/effect/easing.html https://github.com/windsurfer/jquery-ui/blob/master/demos/ef...
- MatthewB 15y agoThis is very cool. Bookmarked.