background preloader

Animations and Effects

Facebook Twitter

How To Build an Animated Header in jQuery. Home > CSS, Front End Development, HTML, Javascript > How To Build an Animated Header in jQuery Why not give a little flair to your header.

How To Build an Animated Header in jQuery

This tutorial will show you how to animate your header’s background image using jQuery to give your website that little extra something. Sexy Opacity Animation with MooTools or jQuery. A big part of the sexiness that is Apple software is Apple's use of opacity.

Sexy Opacity Animation with MooTools or jQuery

Like seemingly every other Apple user interface technique, it needs to be ported to the web (</fanboy>). I've put together an example of a sexy opacity animation technique which you may implement in jQuery or MooTools. The XHTML <div id="forest-slot-1" class="opacity"><h2>The Forest</h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus viverra ipsum at est condimentum sed ultricies turpis pellentesque. There's nothing too special about the HTML above; the awesomeness comes with CSS.

The CSS To enhance the design of my content block, I'm adding a colorful background image behind where the content blocks will display. The MooTools JavaScript. How to Load In and Animate Content with jQuery. In this tutorial we will be taking your average everyday website and enhancing it with jQuery.

How to Load In and Animate Content with jQuery

We will be adding ajax functionality so that the content loads into the relevant container instead of the user having to navigate to another page. We will also be integrating some awesome animation effects. So first of all, I have put together a very simple layout for this example. Here's a screenshot and the HTML code we'll use. Step 1 First thing's first, go and download the latest stable release of jQuery and link to it in your document: One of the best things, in my opinion, about jQuery is it’s simplicity. First let’s load the jQuery library and initiate a function when the document is ready (when the DOM is loaded). Step 2 So what we want to do is make it so that when a user clicks on a link within the navigation menu on our page the browser does not navigate to the corresponding page, but instead loads the content of that page within the current page.

Step 3 Step 4 Here is the code so far: Typography Effects with CSS3 and jQuery. Today we will create a set of nice typography effects for big headlines using CSS3 and jQuery.

Typography Effects with CSS3 and jQuery

There are many things we can do with CSS3 animations and transitions and we'll explore some of the possibilites. View demo Download source Today we will create a set of nice typography effects for big headlines using CSS3 and jQuery. There are many things we can do with CSS3 animations and transitions and we’ll explore some of the possibilites. We’ll be using Lettering.js in order to style single letters of the words we’ll be having in our big headlines. The image used in the demo is by Andrey & Lili. Building an Animated Cartoon Robot with jQuery. Why?

Building an Animated Cartoon Robot with jQuery

Aside from being a fun exercise, what purpose does something like this have? None that's plainly obvious. Its about as useful as a miniature ship in a bottle. Yet it does have an underlying purpose. It could inspire someone to look beyond the perceived constraints of web designers and developers. View Demo Overview This project was created by layering several empty divs over each other with transparent PNGs as background images. The backgrounds were animated at different speeds using a jQuery plug-in by Alexander Farkas. Create a Stunning Sliding Door Effect with jQuery. Introduction Continue from our previous thumbnail effect series.

Create a Stunning Sliding Door Effect with jQuery

This is the third one. If you missed the previous two, you can visit the following links: Advertisement This tutorial is going to be awesome! Basically, this is what it does: Grab all the div with qitem class, find the image and replace it with four DIVs (four corners)Each of the corner will have the same background image (grabbed from qitem class's child image element) but with different background position: top left, top right, bottom left and bottom right. Item Blur Effect with CSS3 and jQuery. Today we want to show you how to create a simple blur effect for text-based items.

Item Blur Effect with CSS3 and jQuery

The idea is to have a set of text boxes that will get blurred and scaled down once we hover over them. The item in focus will scale up. This will create some kind of "focus" effect that drwas the attention to the currently hovered item. View demo Download source. Lateral On-Scroll Sliding with jQuery. After getting the request, we are going to show you how to create a "slide-in on scroll" effect.

Lateral On-Scroll Sliding with jQuery

You've probably seen this cool effect on some websites, like on Nizo or in the portfolio section of brilliantly designed La Moulade. SUPERSCROLLORAMA. SuperScrollorama is powered by TweenMax and the Greensock Tweening Engine.

SUPERSCROLLORAMA

Go to greensock.com for documentation on how to use it. Why Greensock/TweenMax? Great performance, ease-of-use, expandibility and basically because it is awesome. First, link to the jQuery CDN and then embed TweenMax.js and SuperScrollorama. Next, start up SuperScrollorama. When initializing SuperScrollorama there are several options you might want to change. $.superscrollorama({options}) vars: optional properties for the pin method (object): isVertical Are we scrolling vertically (true) or horizontally (false)?

Example Use the addTween method to build your scroll animations. .addTween(target, tween, duration, offset, reverse) target: scroll position (number) or element (string or object) tween: a Greensock animation tween object duration: scroll duration of tween in pixels (0 means autoplay) offset: adjust the animation start point reverse: disable reverse animation on up scrolling (optional)