background preloader

jQuery lightbox for images, videos, YouTube, iframes

jQuery lightbox for images, videos, YouTube, iframes

Design web, applications, jQuery, Wordpress | Webinventif Flexslider by WooThemes namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin animation: "fade", //String: Select your animation type, "fade" or "slide" easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" reverse: false, //{NEW} Boolean: Reverse the animation direction animationLoop: true, //Boolean: Should the animation loop? smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode startAt: 0, //Integer: The slide that the slider should start on. slideshow: true, //Boolean: Animate slider automatically slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds

Bien valider ses formulaires avec Javascript Petit rappel sur les formulaires Rappelons-nous d'abord de quoi est composé un formulaire : de champs de saisie, matérialisés par des balises input, select et textarea ; de boutons pour valider ou annuler / effacer le formulaire, respectivement <input type="submit" /> et <input type="reset" /> ; une balise form qui encadre le tout ; et éventuellement ce fameux script en Javascript qui va vérifier le contenu avant son envoi vers le serveur Web. Cet ensemble peut être complété par des balises label, fieldset, legend, etc. pour améliorer l'accessibilité et la structure d'un formulaire. Je vous renvoie à l'article Utilisation des formulaires pour en savoir plus à ce sujet. Nous ne nous occuperons ici que de l'aspect Javascript. Voila ce que cela pourrait donner : <form action="url_page_suivante" method="get" name="formSaisie"><p><label for="prenom">Saisissez votre prénom :</label><input type="text" name="prenom" id="prenom" /><input type="submit" value="Ok" /></p></form> L'événement "onsubmit"

Magnific Popup: Responsive jQuery Lightbox Plugin Magnific Popup is a responsive lightbox & dialog script with focus on performance and providing best experience for user with any device(for jQuery or Zepto.js). Examples Single image lightbox Three simple popups with different scaling settings. 1 — fits horizontally and vertically, 2 — only horizontally, 3 — no gaps, zoom animation, close icon in top-right corner. Lightbox gallery You may put any HTML content in each gallery item and mix content types. Zoom-gallery If you wish to open the popup only after image is fully loaded, you may preload image via JS. Popup with video or map In this example lightboxes are automatically disabled on small screen size and default behavior of link is triggered. Dialog with CSS animation Animations are added with simple CSS transitions, you can make them look however you wish.More animation effects on CodePen. Popup with form Entered data is not lost if you open and close the popup or if you go to another page and then press back browser button. Ajax popup Fast

20 Top Script.aculo.us Scripts you can’t live without-Speckyboy Design Magazine | Speckyboy Design Magazine 20 Top Script.aculo.us Scripts you can’t live without. 1. Sexy Sliding Menu for script.aculo.us URL: Description: There is also a MooTools variation with this menu, this truelly is a sexy sidebar. I am using this script on a new site I am designing. 2. URL: 3. URL: 4. URL: 5. URL: 6. URL: 7. URL: 8. URL: 9. URL: 10. URL: and the rest… 11. 12. 13. 14. 15. script.aculo.us Reflector. 16. 17. 18. 19.

Gamma Gallery - A Responsive Image Gallery Experiment Assemblage Becoming Sky high Life Beleaguer Chatoyant Denouement Desuetude Diaphanous Desuetude Languor Inglenook Forbearance Penumbra Mondegreen Plethora Onomatopoeia Wafture Cynosure Epiphany Felicity Serenity Furtive Glamour Inure Labyrinthine Lagoon Desire Leisure Softness Moiety Nemesis Panacea Scintilla Example for loading more items...

Iframe loading techniques and performance First publication: December 20, 2010 Iframe setTimeout() does not work in IE9 Chad Barnsdale of Unfinishedman.com mentioned to me on May 25 that the Iframe setTimeout() technique does not work in IE9. And he was right. The file that gets loaded into the iframe simply does not load. Nothing happens. I will dive into this sometime soon. Iframes are often used to load third party content, ads and widgets. Iframes block onload of the main page The main page and iframe share the same connection pool The onload blocking is the biggest problem of the two and hurts performance the most. How can you load an iframe without blocking onload and as a result improve page performance? This article shows 4 ways to load an iframe in a web page: Normal Iframe, Iframe After Onload, Iframe setTimeout() and Dynamic Asynch Iframe. Normal Iframe You all know this one. Using the Normal Iframe technique will result in the following behaviour in all browsers: Click for bigger version. Iframe After Onload Like it?

3D Gallery Room « Previous Demo: 3D Book Showcase Images by Thomas ClaveiroleBack to the Codrops Article 3D Gallery Room Demo 1 Demo 2 x Javascript Mistakes You Must Avoid If you are new to JavaScript and you write raw JavaScript or use any framework (jQuery, Mootools, Dojo, YUI) with it, you must avoid few mistakes. Actually these are my experiences when I was learning JavaScript. Equality Operator You may know that in js, two operators are used for comparing values. Here are more examples. Some of the results are unexpected specially for those who don’t know how JavaScript evaluates == operator. Consider the first example (1 == “1″). In the second example (“true” == true) is false because if the string contain characters other than digits, convertion to number will return NaN which means Not a Number. You can check what value will be returned after conversion to number using the Number constructor. Now you maybe wondering how === operator works. Not Assigning null to Reference Types It’s common mistake that many js developers don’t assign null value to variables of reference types (object or Array) when there use is finished. Don’t Forget Keyword var

Javascript : 10 plugins que vous devez connaître - ressource-javascript Pour vous aujourd'hui, 10 ressources javascript pour vous aider dans vos projets. Chosen est un plugin javascript ajoutant de nombreuses fonctionnalités aux selects, tout en les rendant beaucoup plus jolis. Disponible pour jQuery et prototype. TypedJS est un outil de test pour javascript. Fancybox est un très bon plugin de lightbox, peut être le meilleur sur le marché. Turnjs est un clone de l'effet de page tournée de ibook sur ios. Jcrop est un plugin jQuery permettant de cropper une image en JS. Comment faire une timeline simplement en JS? Ce plugin permet de transformer simplement des données json un joli diagramme de Gantt Vos clients trouvent wordpress trop complexe? Codemirror est un éditeur de texte en ligne avec coloration syntaxique.

Sliding Boxes and Captions with JQuery One Mighty Roar via Ad Packs Jarek Kubicki ArtistMore Work Kamil Smala ArtistMore Work Martin Stranka PhotographerMore Work Florian Nicolle Graphic DesignerMore Work The Nonsense Society Art, Music, WordWebsite This is the Live Demo Go back to the tutorial for a full explanation of what's going on! Parallax Hovering And Its Engaging Quality For Web Design Parallax effects are interactive by nature and still relatively new in web design. That’s why they are a great way to make your visitors curious, draw them in, and engage them with your website. On the web, as much as in the real world, we are quite cautious and like to be in control. At times, we are uncertain and appreciate instant feedback on our actions. Parallax is a displacement or difference in the apparent position of an object viewed along two different lines of sight. – Source If we look at a close object from two different viewpoints, and against a distant background, we get a different perspective for each viewpoint. A while back we talked about parallax effects triggered by scrolling. Attract your visitors’ attention Regarding the visual and animated nature of parallax effects, they are a great way to attract attention. Parallax effects can guide your users’ line of sight. Use parallax hovering to attract your visitors’ attention. Create a sense of depth Entertain your visitors

Related: