This could be something I look to include next year though if there’s interest in finding out about usage.
390 karma · joined October 1, 2012
This could be something I look to include next year though if there’s interest in finding out about usage.
Unfortunately, as it’s a side project, I didn’t have time to rectify this (using iScroll or something similar). Would like to find a solution though.
Good idea re the curtain - it would be quite an easy port to make the animation work like that, so think I might do that at some point.
Think there are lots of possibilities around window resizing that haven't been explored yet - could make some really interesting effects...
SVG would probably be much more robust as a solution (as would canvas have been) - I think the demo shows more than anything that CSS3 animations need slightly more reliable support across modern browsers before they are a viable choice for doing some really nice things with them.
I'm going to add a width counter to give more feedback on the resizing, as seems to be a bit of a bottleneck.
In Firefox, it works as you would expect, stepping through the spriting. In webkit, it's very inconsistent in how it renders, and doesn't look as polished because of this.
I've noticed the speed of the animation being effected by the resizing - like mentioned to others, will probably release a version which just shows the animations off separate to the window resizing as well to avoid this. The main reason for including reliance on media queries was to fit it into the mozilla dev derby criteria for this month.
Reason for the resizing down at the start is simply so only certain parts of the animation show at different times. It means I can control what width the animation is being viewed at, as otherwise I'd have to animate everything across a very large width potentially, which would be pretty time consuming, as this could be huge. Think with the feedback I've had, will release as a non media query animation as well when I get chance.
Not sure if an increasing div would work. Could potentially do it as an iframe, but not sure how nicely that'd work, would have to try it out.
Think I'll release it as a separate full animation at some point - will write up how it's all put together when I do.
I could pretty easily modify and release as a straight up animation though with no media query control.
Thanks for the feedback though - might create a separate self-running version at some point.