TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Animation in AngularJS

110 pointsby gskleealmost 12 years ago

11 comments

randallualmost 12 years ago
Saying &quot;Animation in jQuery relies on CPU and Memory&quot; is silly if you use translateZ(0) to create a composited layer which uses a tremendous amount more memory.<p>WebKit at least will create a composited layer for the duration of a transition&#x2F;animation all by itself -- if you do choose to use translateZ(0) everywhere, understand that it consumes texture memory the whole time the element is in the DOM (and not display:none) and maybe has a backing store in heap as well. So if you want your page to not crash Mobile Safari on older Apple devices then use it judiciously.
评论 #5943458 未加载
ok_craigalmost 12 years ago
I&#x27;m excited there&#x27;s going to be an ngAnimate for animations in AngularJS, but I feel compelled to comment mostly to say that this presentation is awesomely done. Good job.
评论 #5941644 未加载
kailuowangalmost 12 years ago
With ng-animate, angular completes the circle of defining HTML DOM behavior in a pure declarative way. I can&#x27;t wait for this to go to the stable branch.
评论 #5941308 未加载
评论 #5941719 未加载
评论 #5941265 未加载
评论 #5943475 未加载
mr_noahalmost 12 years ago
I&#x27;m not familiar with Angular.js. But I am very familiar with CSS3, jQuery and the Greensock animation platform. Greensock (TweenMax) is without a doubt the best animation platform I&#x27;ve ever used. CSS3 animation gives you nowhere near the amount of fine grain control over animations that greensock provides. CSS3 is great for simple stuff, but for complex reactive timelines it&#x27;s basically impossible to work with. jQuery is OK for basic things that don&#x27;t need the performance, but is clunky is feels restrictive.<p><a href="http://www.greensock.com/transitions/" rel="nofollow">http:&#x2F;&#x2F;www.greensock.com&#x2F;transitions&#x2F;</a>
navsalmost 12 years ago
The anti-IE in this presentation is strong. Or rather, the anti pre-IE9. I have multiple clients that simply NEED me to support IE and be reasonably close in interaction to their modern browser counterparts. Banks are one of them. CSS3 animation with fallback is the key.
评论 #5950964 未加载
lenkitealmost 12 years ago
Ok, I am lost, but all I see is the definition of .fade CSS class using the transition&#x2F;transform properties - not sure what this has to do with angularjs.
评论 #5941346 未加载
akivabambergeralmost 12 years ago
One thing that&#x27;s still missing is editing CSS animations in angularJS. I&#x27;m finding that I have to make a lot of separate animations (hardcoded keyframes) and use those in code. No way to dynamically change the animation in the app.
mellingalmost 12 years ago
IE10 is over 10% market share. It&#x27;s great that Microsoft is pushing the auto-update. If you don&#x27;t care about the straglers, you&#x27;ll be able to do some really cool stuff across all browsers and leave the legacy behind.
评论 #5942843 未加载
CountHackulusalmost 12 years ago
Yup, CSS animations are easier to both write and use, and are super fast. Except on iOS6+ where a long-standing bug has made them nearly unusably slow.
weboalmost 12 years ago
I haven&#x27;t seen slid.es before. This is awesome.
评论 #5941931 未加载
评论 #5942335 未加载
gbadmanalmost 12 years ago
PSA: Hit the &#x27;eye&#x27; icon on the right, &#x27;Run&#x27; on the top or CTRL&#x2F;CMD-ENTER to toggle the preview pane in the demos.