background preloader

jQuery

Facebook Twitter

Créez une POPUP fenêtre modale avec CSS et jQuery. Il existe de nombreux scripts de fenêtres modales (de type pop-up) simples à implémenter et élégantes.

Créez une POPUP fenêtre modale avec CSS et jQuery

Mais la plupart du temps, ces scripts peuvent rentrer en conflit avec la logique propre de la page. J'ai été récemment confronté à un cas où il m'était impossible d'utiliser les scripts comme fancybox ou prettyPhoto. J'ai donc dû développer ma propre fenêtre modale pour y insérer du code (X)HTML. Je vais vous expliquer comment j'ai procédé. Voir la démo en ligne Commençons par ajouter une balise <a> avec les attributs suivants : href - #? <a href="#? Ensuite, nous ajoutons le code (X)HTML des fenêtres. <div id="popup_name" class="popup_block"><h2>Developpez.com</h2><p>Soh Tanaka est traduit sur developpez.com.

Le code CSS est commenté afin de vous expliquer comment il fonctionne. Pour ceux qui ne sont pas familiers avec jQuery, je vous invite à mieux connaitre cette librairie sur leur site pour comprendre comment elle fonctionne. $(document).ready(function() { }); Image Loading. Basic Version In our basic version, we will have a single div containing a loading spinner and once our large image is loaded (in the background) we will remove the spinner and insert our image.

Image Loading

There’s a few ways to approach the loading screen, two of which are: Use a background image on the holder div, this way we can easily centre align horizontally and vertically using CSS, rather than adding extra markup.Adding a styled div in our holder div, then remove the entire block of markup when the image loads. I’ve provided a screencast explaining how to achieve this (though it is based on the CSS version, also shows how to do this with a separate loading div). Watch the jQuery basic image load screencast (alternative flash version) View the demo and source code used in the screencast Note that in the demonstration as I am simulating loading a slow to load image by including a script tag at the bottom of the markup.

HTML Markup The markup (segment) that we’re using is extremely simple. 36 Awesome jQuery Image Enhancing Plugin Tutorials and Resources. 36 Awesome jQuery Image Enhancing Plugin Tutorials and Resources Posted on by bmackler in Resources Over the past few years, JavaScript frameworks including jQuery, Dojo, Mootools and Protools have become very popular with designers and developers who want to create dynamic effects without using cumbersome programming languages or 3d party animation programs.

36 Awesome jQuery Image Enhancing Plugin Tutorials and Resources

These effects, including smooth transitions, animation, blending and user initiated movement are relatively easy to use even with little javascript programming experience. Take a look at 36 awesome jQuery image plugin tutorials and resources. Find out how jQuery can enhance how you display images on the web, including pop up windows, image galleries and special effects. Check also these 10 helpful wordpress cheatsheets perfect for web designers. Totally awesome Stainless steel jewelry available at LusterForever.com.

Tutorials Facebox Facebook-style lightbox. Goksel Eryigit - Front-end Developer » Create a Simple Image Preloader Jquery Plugin. Post Source Download Source FilesSee the Demo How often do you find that images in a website load gracefully; the kind where a loading icon first appears, and the image then fades in, once loaded?

Goksel Eryigit - Front-end Developer » Create a Simple Image Preloader Jquery Plugin

This technique can greatly boost the performance of your website. If you’re not already familiar with this method, you’re in luck! Today, we’ll create a preloader plugin for your projects. Step 1: Setting Up Your Workspace First, we are going to setup the project folder for this tutorial. Our main HTML file CSS folder for our stylesheet and loading icon ( in ‘i’ folder) JS folder for jQuery and our plugin IMAGES Step 2: The HTML We’re going to start off with the HTML code. Nothing fancy here: just plain HTML code for a simple gallery. Note that the extra p tag wrapping each anchor is used for the purpose of styling the image; they are not explicitly required. Step 3: The CSS First, we have created a 960px centered container, and have added a background to the page.

Styling the Gallery.