
ColorBox, une lightbox jQuery légère et extensible ColorBox est un plugin jQuery qui permet de générer une lightbox légère et totalement personnalisable pour accueillir photos, textes ou vidéos. Avec plus de quarante options disponibles, ColorBox s’inscrit dans la lignée des meilleurs générateurs de « pop-in ». Facile à utiliser, c’est aussi un des plugins jQuery les plus utilisés sur Internet. Un plugin léger et complet Au même titre que Fancybox, ColorBox est un plugin de qualité. Parmi la multitude d’options, vous retrouverez le type de transition (« fade », « elastic » ou « none »), la vitesse d’animation, l’insertion d’une légende, les boutons de navigation, le degré d’opacité du background, les dimensions de la lightbox, l’activation du diaporama, ou encore la navigation au clavier. Facile à mettre en place ColorBox est très simple à utiliser. Une fois la structure prête, on déclare jQuery et le plugin (script et feuille de style) dans notre document. Il existe de nombreux plugins jQuery qui proposent de la génération de lightbox.
JQuery jQuery est une bibliothèque Javascript dont le but est de simplifier plusieurs opérations fastidieuses en Javascript "pur". En particulier, elle rend la manipulation du DOM et l'ajout de transitions en HTML beaucoup plus simple. 1 Pourquoi utiliser jQuery ? Il y a plusieurs raisons en faveur de l'utilisation de jQuery. Le principale raison de choisir jQuery est que, comme pour la plupart des librairies, cela facilite beaucoup la manipulation, surtout en ce qui concerne le maniement d'éléments du DOM. Citation: «jQuery is a fast, small, and feature-rich JavaScript library. 2 L'installation Vous pouvez télécharger la dernière version de jQuery sur le site de jQuery il vous suffit alors d'ajouter la ligne suivante dans votre code HTML. Alternativement, vous pouvez utiliser la version "minifiée" disponible en ligne 3 La syntaxe de base La syntaxe de base de jQuery et la même que celle de JavaScript, vous ne serez donc pas perdu si vous connaissez ce langage. Tutoriel JavaScript de base $("#p1");
Un formulaire anti-spam sans Captcha par Spookev Spookev nous propose le code d'un formulaire sans captcha et anti-spam facilement intégrable et efficace C'est Spookev (auteur de peeklife et récemment de MonHmaF) qui a écrit tout bêtement ce petit bout de code, et vous allez voir que l'idée, est à la fois très bonne et vraiment simple à mettre en place. Ce qui est même étonnant, c'est que cette idée n'ait pas déjà été exploitée avant, en tout cas, à ma connaissance. Il est parti du principe que les bots (ces robots spammeurs) sont suffisamment assez bêtes pour vouloir remplir tous les champs dans un formulaire. Il suffit donc de créer un champ texte supplémentaire, de le rendre invisible avec du CSS, et surtout, de le faire analyser, grâce au javascript, ou au PHP, avant l'envoi final. Logiquement, comme ce champ "spécial" est caché, il n'y a pas de raison pour qu'un véritable utilisateur le remplisse. Voici donc le code à ajouter dans le formulaire. Dans votre fichier CSS, ajoutez ceci, pour justement cacher ce champ "spécial"
Quick Tip: Prevent Animation Queue Buildup You've probably stumbled upon a navigation powered by some jQuery effects during your web adventures. Of course you then ran your mouse back and forth over the navigation really fast to watch the animation repeat itself over and over and over again. The natural queuing of animations/effects by jQuery makes the typical animation super easy to code and move on to more important tasks. However, sometimes the animation queue just gets in the way. Here is an example of a navigation that has some effects applied to it via jQuery. Here is the JavaScript that does the effect for the menu: JavaScript: Now let's look at how we can prevent this undesirable behavior. $(document).ready(function(){ $('ul.anim_queue_example2 a') }, function() { });}); Here is the navigation again, using the above JavaScript. As you can see, the animation is no longer queued up by moving your mouse back and forth over the menu items. For more information about the .stop() method, visit the jQuery documentation page.
Tooltipster - The jQuery Tooltip Plugin Styling your tooltips with a custom look ⇑ Tooltipster makes it very easy to go from one of the packaged themes and customize a few properties of your choice. To do so, we recommend that you create a so-called "secondary theme" which will override some properties of a packaged theme. Create a new css file and include it in your page. For your secondary theme to be applied, provide an array of themes instead of just one. Changing the size of the arrow might be the only challenging customization but it's doable! Updating a tooltip's content ⇑ It's easy as pie to update a tooltip's content - whether it's open or closed. $('#myelement').tooltipster('content', 'My new content'); // or when you have the instance of the tooltip: instance.content('My new content'); Tooltipster plays a subtle animation when the content changes. Using AJAX to generate your tooltip content ⇑ One great use for this is to grab dynamic content for your tooltips via AJAX. Forcing or disabling sides ⇑ Predefined behaviors
Zepto.js: the aerogel-weight jQuery-compatible JavaScript library Utiliser la Google Web Fonts API Ici vous pourrez découvrir, comment grâce à l’API de Google, importer de nouvelles polices, valables sur n’importe quel navigateur, et sur la plupart des jouets comme l’iphone, l’ipad, et les téléphones Androïd. Pourquoi utiliser une API ? Il est toujours possible d’importer des polices de caractères et les intégrer « à la mano ». Cependant l’utilisation de cette API permet de le faire très rapidement et vous serez sûr de sa bonne intégration pour la plupart des navigateurs. En effet reprendre une police, puis la convertir aux différents formats est toujours un petit casse tête. Il faut donc prévoir 3 formats minimum : .eot, .ttf/.otf, .svg Source : Typographisme.net L’avantage d’utiliser une API est que vous n’aurez pas à gérer ça, elle le fait pour vous, en détéctant la version du navigateur de l’internaute et en renvoyant le bon format. Un autre plus indéniable sera aussi la légereté de la police, qui est alors plutôt bien compressée, et ne dépassant généralement pas les 30 Ko. Résumé
How to Make a Smooth Animated Menu with jQuery Ever seen some excellent jQuery navigation that left you wanting to make one of your own? Today we’ll aim to do just that by building a menu and animate it with some smooth effects. The Goal – One Smooth Menu Here’s a demo of what we’ll end up with by the end. Introduction – An explanation of easing The menu has such a smooth animation because of a thing called “easing”. “The term easing refers to gradual acceleration or deceleration during an animation, which helps your animations appear more realistic. Thanks to the magic of the jQuery Easing plugin, we can now use easing outside of Flash and Actionscript environments. Step 1 – Set up the Structure Before starting with any jQuery, we’ve got to build a quick menu structure with XHTML and load in the required project files. Nothing out of the ordinary here. Then copy in this menu structure into the body: Menu items have a class assigned to it that will designate the color of the block. Step 3 – Style with CSS Step 4 – Animate with jQuery
Parallax Gallery In this tutorial, you will learn how to make a Flash parallax scrolling gallery from scratch. Parallax scrolling is frequently used in most 2D animation and games, where the background images and foreground images scroll at different rate of speed. This will create an illusion of depth as the background images are moving slower than the foreground images. View Demo Gallery Download Demo ZIP 1. First we need to make a tiled wood floor image. 2. Now make a new document, 2520 x 450px. 3. Make a rectangle shape just below the wall. 4. Select foreground color #f0ecd6 and make a rectangle shape above the floor layer. 5. Paste in your vector logo on the wall. 6. Now it is time to add in some furnitures in the scene. Couch's Shadow Make a new layer. Go to Edit > Free Transform (Cmd + T). 7. Make a new selection as shown with the Pen Tool. 8. Since these steps are very repetitive, I'm not going to further explain the details. 9. First, export the tiled background image. 10. 11. 12. 13. 14. 15. 16.
jQuery Fundamentals :: A guide to the basics of jQuery Les meilleures solutions de diaporama flash et javascriptWebCssDesign Les meilleures solutions de diaporama flash et javascript Voici un récapitulatif des meilleures solutions de diaporama flash ou javascript gratuites jQuery, Mootools et Prototype Polaroid Gallery v.1.01 Polaroid Gallery est une galerie Flash open-source développé par Christopher Einarsrud. Active Slideshow Pro Avec Active Slideshow Pro vous pouvez créer des présentations mutil-médias gratuitement avec un maximum d’options. PicLens Slideshow Basé sur PicLens et RSS technology voici une solution intéressante de galerie web. Plogger Plogger est annoncé comme la nouvelle génération open-source de galerie photo. Shadowbox Shadowbox écrit en javascript et CSS est une solution pour présenter vos médias via le web. PhatFusion Slideshow Une solution pour vos transitions d’images. Galleriffic Galleriffic est inspiré par Mike Alsup’s Cycle plug-in, mais pensé pour de grosses quantités de photo. NoobSlide Fancybox Outil pour afficher des images, contenu html et multi-média Auto Generating Gallery Barack Slideshow
10 jQuery Horizontal Scroll Demos & Plugins In today’s post we bring to you 10 jQuery Horizontal Scroll Demos & Plugins useful for those who see things horizontally. I guess we have to accept some people scroll both ways! :) Updated: March 2016 Updated all plugins and demos with the latest versions and added some new ones. Also removed plugins which aren’t in development anymore. ScrollMagic helps you to easily react to the user’s current scroll position. See the demo jInvertScroll is a lightweight plugin for jQuery that allows you to move in the horizontal with a parallax effect while scrolling down. See the demo 3. This tutorial will teach you to create an easy to customise, horizontal timeline powered by CSS and jQuery. See the demo This tutorial will teach you how to create a simple smooth scrolling effect using the jQuery Easing Plugin and just a few lines of jQuery. See the demo simplyScroll is a flexible jQuery content scroller with touch support. See the demo 6. Learn PHP for free! Normally RRP $11.95 Yours absolutely free 8.