background preloader

Creating a Mouseover Fade Effect with jQuery

My last little jQuery tutorial was an alternative to using CSS to create an image change on a mouseover. Now I want to take that one step further and add a fade effect. For my example, I am going to make a black and white image fade into a color image. To achieve this effect I am going to introduce the animate function. There are tons of possibilities in regards to jQuery’s animate function, but for this tutorial, I’m going to keep it simple by just using it to do one thing. First things first, download jQuery. Add the jQuery script between your head tags. Here is the function. Here is the CSS. And here is the body code. All together you got something that looks like this. Test it out below: NOTE: If you are using jQuery with WordPress, you need to replace all the dollar signs ($) with the word jQuery due to other Javascript libraries that use the dollar sign.

http://bavotasan.com/2009/creating-a-jquery-mouseover-fade-effect/

Related:  web designing

Blogger Templates (Classic) 21 – 25 If any of you guys happen to boot the classic templates from my previous collection into the new XML format, please share, email the files and I’ll host it here. A credit on the footer of the template goes to the author and not to GeckoandFly. Come and help built the world’s biggest collection of Blogger Templates. Thanks :) Good luck and happy blogging! HTML5 Grayscale Image Hover Once upon a time, grayscale image has to be manually converted in order to be displayed on the web. Now with HTML5 canvas, images can be manipulated into grayscale without having to use image editing software. I've put together a demo to show you how to use HTML5 & jQuery to dynamically clone color images into grayscale (see demo). Credits: thanks to Darcy Clarke (my Themify's partner) for the jQuery and Javascript code. View Demo HTML5 Grayscale The Purpose

Creating Interactive Fictional UI With CSS3 In today’s article we will create an interactive fiction user interface (UI) coded with CSS transforms and transition properties. The idea is to have a button and reveal more information when mouse over on it. You can check out the demo before you proceed to the next section. View Demo Cool right? Dance to the Music - Website Templates Designer's Comments Look carefully for specific instructions To use this layout simply copy and paste the code and you should be ready to go. This layout contains Valid CSS and HTML. Feel free to make changes but be sure to keep the original credits intact!

reveal.js - The HTML Presentation Framework HTML Presentations Made Easy Created by Hakim El Hattab / @hakimel Heads Up 50 New Useful CSS Techniques, Tutorials and Tools Advertisement These are great times for front-end developers. After months of exaggerated excitement about HTML5 and CSS3, the web design community now starts coming up with CSS techniques that actually put newly available technologies to practical use instead of abusing them for pure aesthetic purposes. We see fewer “pure CSS images” and more advanced, clever CSS techniques that can actually improve the Web browsing experience of users.

dcarter design - free website templates, free css templates All of these web design templates are released as 'open source' designs which means that you are FREE to download and use them for anything you want (including modifying and amending them). All I ask is that you leave the 'design by dcarter' link in the footer of the template, but other than that the template is all yours! If you wish to remove the footer link you can do so by sending a small donation. Finding The Best Place To Host Your Template

How do I create a video lightbox? / Video and Technical Questions / Knowledge Base - vzaar Support The only prerequisite for adding this effect to your site is that you must have FTP access to upload the JavaScript files that are needed. You will need to replace parts of this code with your own video details. All of these are marked in capital letters. Advanced CSS Menu Last tutorial, I showed you how to design a watercolor effect menu in Photoshop. This tutorial I will show you how to slice up the menu design (step by step) and put them together with CSS. Most of you probably know how to code a horizontal or vertical CSS list menu. Now let's take it to the next level — code an advanced (un-typical) list menu utilizing the CSS position property.

100+ Seamless Patterns Great for Creating Website Backgrounds 1026 shares 200+ Seamless Patterns Perfect for Website Backgrounds We’re always on the lookout for great freebies to share with our readers, and today we’ve got some seamless patterns. Seamless patterns are a great way to add a lot of detail to a design and fill up a big area, such as a background. CSS3 Image Styles When applying CSS3 inset box-shadow or border-radius directly to the image element, the browser doesn't render the CSS style perfectly. However, if the image is applied as background-image, you can add any style to it and have it rendered properly. Darcy Clarke and I put a quick tutorial together on how to use jQuery to make perfect rounded corner images dynamically. Today I'm going to revisit the topic and show you how much more you can do with the background-image CSS trick. I will show you how to use box-shadow, border-radius and transition to create various image styles.

Related: