THE FOLLOWING
HAS BEEN APPROVED FOR
SO DON'T PANIC EVEN IF YOU'RE NEW TO ANGULAR
http://spongebob.wikia.com/wiki/Squog
.fade {
transition: 1s;
opacity: 0.25;
}
$('button').click(function() {
$('div').addClass('fade');
});
ie.
Separation of Concerns
What about...
can see CSS3 animation as of May 2013
Beginning of Auto-upgrade ⬇
So that leaves roughly 10% of users still at large but,
please lemme tell you this...
Hope Linus won't mind me borrowing this wonderful shot to convey my idea. http://www.nikopik.com/2013/02/linus-torvalds-a-toujours-un-sacre-franc-parler.html
Do you know that...
of mobile web users still come from feature phones
and other primitive devices?
So why would you care...
whether IE8 users could see your fancy animations
It enlivens your expression,
but stripping it away and things should still be obvious.
http://www.freegreatpicture.com/background-color-theme/hd-color-background-wallpaper-18429
...relies on
...is written in an untyped, interpreted language
is
...can tap into the power of
...is running on engines written in native code
is
the
and
in
http://www.listofimages.com/robin-de-blanche-escalator-light-other.html
http://obamamedia.wordpress.com/2008/10/14/blue-obama-o-logo-wallpaper
I thought we're gonna talking about
today?
puts a heavy emphasis on
It goes great lengths
extending the vocabulary of HTML
to restore balance to the galaxy...
three pillars of the frontend world...
STRUCTURE
BEHAVIOR
PRESENTATION
The Eval JavaScript Empire
INTERFACE
LOGIC
PRESENTATION
The New Angular Republic
.fade {
transition: 1s;
opacity: 0.25;
}
$('button').click(function() {
$('div').addClass('fade');
});
Let's see how to express
this same thing
the "Angular Way"...
http://imagesci.com/rainbow-abstract-backgrounds-2210-hd-wallpapers.html
+
http://www.wallpaperup.com/41783/Spongebob_rainbow_cartoon.html
What if we'd like to do
for
As we've just seen
there appears to be some problems...
http://imagesci.com/rainbow-abstract-backgrounds-2210-hd-wallpapers.html
Most Importantly...
INTERFACE
LOGIC
PRESENTATION
Hackish, Hard to Test
Nothing to do with REAL LOGIC
REAL LOGIC is down to earth
Nothing RHETORICAL
Why can't we do it like this?
tackles this issue with a homemade $transition service
But...
You no longer need to
reinvent your own solution.
To use ngAnimate, you need the
of AngularJS
(As of June 2013)
This does NOT mean things will randomly break.
No.
This means things are in
So you gotta follow the changelog yourself
+
+
+
http://www.wallpaperup.com/41783/Spongebob_rainbow_cartoon.html
Now...
Animation in AngularJS can also be done in JavaScript
But you better have a good reason doing that
+
It's immediately apparent why you'll wanna use
whenever possible
...let's you write-less-do-more™
...is the convention-over-configuration approach
...with all the aforementioned advantages
...is more verbose
...most likely brings along a lot of deadweight
...with all the aforementioned troubles
If you really need JavaScript animations,
consider using
instead of jQuery