background preloader

Dynamic PNG shadow position & opacity with jQuery - by Daniel Kurdoghlian

Below you can see the magic interesting part of my script: This is, what makes the correct positioning of the shadow <div>. Just assign this function to a dragging event (+ window-resize & load) and you have your dynamic positioning.

How to Make an Impressive Animated Landscape Header with jQuery Content doesn’t always have to stay visible. Sometimes it can hide in the most unexpected locations. In this tutorial we’ll start with a cartoon themed header, build two different states for content and animate a transition between them using jQuery. This is going to be a big undertaking. I’ll warn you now, there will be a lot of code to copy and paste. I will cover the essentials in the main tutorial, but in the interest of space I will not do a line by line analysis. The Goal – Green Cartoon Hills Before we start, let’s take a look at the end result. Step 1 – Get Your Files Organized Just so we’re all on the same page throughout the tutorial, here’s a screenshot of my project file structure: As you can see, you’ll need to make three main files for the CSS, jQuery, and XHTML respectively. You’ll also want to make a directory for Javascript plugins, and another for images. IE6 Disclaimer – Many of the project images above use the PNG format in order to have cleaner transparency. Google+

Spritely.net Dynamic Page | Home Pellentesque habitant morbi tristique senectus et netus et malesuada. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Related: