background preloader

Code

Facebook Twitter

Understanding CSS3 Transitions. It was 1997 and I was sitting in a terribly run-down apartment in beautiful Allston, Massachusetts. A typical late night of viewing source and teaching myself HTML followed a day of packing CDs at a local record label for peanuts (hence the run-down apartment). I’m sure you can relate. Article Continues Below One triumphant night, I pumped my fist in sweet victory. I’d just successfully coded my first JavaScript image rollover. I still remember the amazement of seeing a crudely designed button graphic I’d cobbled together “swap” to a different one when hovered over by the mouse. We’ve come a long way over the past decade in regard to interaction and visual experience on the web. My first JavaScript rollover back in 1997 took me several nights of head scratching, many lines of code that seemed alien to me at the time, and multiple images.

We can start to use CSS3 transitions right now as long as we carefully choose the situations in which to use them. Tail wagging the dog#section1. HTML5 Boilerplate - A rock-solid default for HTML5 awesome. HTML 5 and CSS 3: The Techniques You’ll Soon Be Using. In this tutorial, we are going to build a blog page using next-generation techniques from HTML 5 and CSS 3. The tutorial aims to demonstrate how we will be building websites when the specifications are finalized and the browser vendors have implemented them. If you already know HTML and CSS, it should be easy to follow along.

Before we get started, consider using one of our HTML5 Templates or CSS Themes for your next project—that is, if you need a quick and professional solution. Otherwise, it's time to dig into these techniques. HTML 5 is the next major version of HTML. Before we begin marking up the page we should get the overall structure straight: In HTML 5 there are specific tags meant for marking up the header, navigation, sidebar and footer. It still looks like HTML markup, but there are a few things to note: In HTML 5, there is only one doctype. Instead of using divs to contain different sections of the page we are now using appropriate, semantic tags. "What?! That's all! Pure CSS Tooltips. What is a tooltip? This is a tooltip an aiding text that appears just when you roll on with the mouse.

The basic idea comes from Eric Meyer's pure css popupsa very clever way to get dynamic effects on an html page without using javascript. My idea was to add position:relative to the link, in order to allow the span element inside to position absolutely respect the parent link. This code has been tested in Ie5.5, Opera7.11 and Mozilla 1.4 and works fine. Solved ie bug adding some z-index, but with the modifications done this technique will be buggy in Opera7.2 . Now, let's have a look at the basic csscascade style sheets, the separation from content and presentation code for the tooltip: Implemenation <a class=info href="#">This is a tooltip <span>an aiding text that appears just when you roll on with the mouse</span></a> css tooltips. JavaScript Functions. Css tutorial and help site - CSS How to. JavaScript Events. In web development terms, an “event” is something that triggers a specific action in the browser.

Usually, an event occurs when a user loads a page, clicks on a button or performs some other task with the mouse or keyboard. This page lists the most common events that can be inserted into JavaScript code to react to user actions. There are many ways to add events to a page and many JavaScript frameworks simplify the process. In order to show code that doesn’t depend on using a particular framework, all examples below will use John Resig’s addEvent function. If you’d like to try out the examples on your own computer, you’ll need to start with this template and add the HTML and JavaScript where instructed. Page Events load The onLoad event fires when the page has completely finished loading, including all graphics and external files (CSS, JavaScript.)

JavaScript: Examples and code can be found at Codelibrary:JavaScript Event – load. resize The onResize event fires when the page is resized. Blur.