Tutorial: JavaScript animation with the Greensock framework. Greensock is a fantastic JavaScript animation framework that performs above and beyond everything else currently available to those of us working with web design. Though only few people know of it in the JavaScript world it’s got a huge audience in the world Flash, where it’s about as widely used as jQuery is among JavaScript-folks. The example ‘3D-flip image gallery’ has been updated to use the newly added 3D features of Greensock. I’ve also added a couple of new example links.
You might be thinking “I already have jQuery! I don’t need another JavaScript animation library.” … While you might feel like jQuery’s animation tools are enough, that’s roughly compared to feeling your old mobile phone is sufficient until you try a smart phone and discover the world of possibilities it gives you to walk around with the internet in your pocket. A few of the things Greensock does that jQuery doesn’t It performs extremely well. On top of that I’d argue that Greensock has a much better syntax. Examples. Tutoriel vidéo AngularJS : Découverte du Framework, création d'une Todo. Mustache.js et ICanHaz.js au secours de jQuery. Qui n’a jamais entendu de la bouche d’un développeur backend (pour ne pas dire Java) “Javascript, moins j’en fais, mieux je me porte”. Je parle en connaissance de cause car j’étais assez imperméable au Javascript par le passé. Mais je ne faisais que “bidouiller” du Javascript car en vérité, je ne connaissais pas le langage et après quelques lectures d’ouvrages de référence (Javascript: The Good Parts de Douglas Crockford par exemple), je me suis surpris à apprécier Javascript de plus en plus.
Et du Javascript il y en a partout, déguisé derrière du jQuery, et même côté serveur avec Node.js. Dans cet article, je vais vous parler d’une librairie Javascript très spécifique, qui ne fait qu’une seule chose mais qui le fait bien. 1. jQuery sans les moustaches Imaginons qu’on veuille afficher une liste de livres (titre, auteur) que l’on récupère sous forme d’objets Javascript. Et le résultat : Title: Javascript: the Good Parts Author: Douglas Crockford Aaah fini les ' et + parasites ! 2. {{! 3. The client-side templating throwdown: mustache, handlebars, dust.js, and more.
In a previous post, we told you how LinkedIn is dumping server-side templates in favor of client-side templates. We've gotten lots of great feedback that we'll discuss in future posts, but today, we'll focus on one question that was especially popular: How did LinkedIn pick dust.js as its client-side templating solution? In the following blog post, we'll outline the requirements we had, the evaluation process, and the results. The candidates The open source community has created a huge number of client-side templating solutions. When we did our initial research, we came up with a list of 26 templating technologies.
This left us with 18 templating technologies to evaluate. Embedded JavaScript Templates These templating options allow you to embed regular JavaScript code directly within the template, an approach similar to ERBs. Logic-less Templates This group of templates follows the philosophy that there should be little to no logic in your templates. The Test The List The Score Mustache Dust.js. BootMetro. Who Says the Web is Just for Squares? With the continued adoption of advanced CSS by browsers, we are starting to have the ability to do more and more using just CSS. As we have seen, you can make all kinds of crazy shapes with only CSS. On a recent client project, the designer challenged me with a grid of diamonds. Oh, also, this is a responsive site. Challenge accepted! So first, I focused on just getting a single square rotated and working how I wanted. Then, I moved to a single row. Then, multiple rows. Some setup for this article: I’m using Modernizr to detect if the browser supports CSS3 Transforms.
Single Diamond It’s fairly simple to just rotate a single square 45 degrees, and then rotate everything inside of it back 45 degress: <a href="#" class="diamond"> <div class="content"> Diamonds Are Forever </div></a> Single Rows Next, I worked on displaying a single row of diamonds: Multiple Rows Now was when the real fun started. From there, I abstracted that out along with a respond-to mixin to work with various breakpoints.
Tools/Books Web. HTML/5. CSS. jQuery.