
This document was produced by the CSS Working Group as a Candidate Recommendation. Other documents may supersede this document.Ī list of current W3C publications and the latest revision of this technical reportĬan be found in the W3C technical reports index at. This section describes the status of this document at the time of its publication. Ian Hickson ( formerly of Opera Software)ĭavid Hyatt ( formerly of Netscape Corporation)

If you’re interested this, you might check out my other CSS3 Transitions tutorial as well.Elika J.

To have more attractive hover animation, try using CSS3 transform properties as decoration like what I did in DEMO2 and DEMO3. That’s all for fancy hover effects in DEMO1. The next decoration div element will be used to make an outer border for thumbnail. We will use this element to create background and border for thumbnail.īackground: -moz-radial-gradient(center, ellipse cover, #ffffff 0%, #e2efff 100%) īackground: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#ffffff), color-stop(100%,#e2efff)) īackground: -webkit-radial-gradient(center, ellipse cover, #ffffff 0%,#e2efff 100%) īackground: -o-radial-gradient(center, ellipse cover, #ffffff 0%,#e2efff 100%) īackground: -ms-radial-gradient(center, ellipse cover, #ffffff 0%,#e2efff 100%) īackground: radial-gradient(center, ellipse cover, #ffffff 0%,#e2efff 100%) įilter: progid:( startColorstr='#ffffff', endColorstr='#e2efff',GradientType=1 ) Next, let’s style our first decoration div element. First, let’s make our thumbnails translucent and display only when hovered. So now, we’ll going to add fancy effect on these thumbnails when they are hovered. We can create a circular thumbnail through CSS3 border-radius. The first thing about CSS is to define some basic CSS properties and the dimension of thumbnails. Two div elements will be added to each thumbnail for decoration purpose. Please note that the following markup will be based on DEMO1, of course, you can still find out the markup for other demo inside the source files.įirst, we will create our thumbnails with caption by using HTML5 figure tag. The idea is to create a fancy circular thumbnail which will be animated when it is hovered. Please note that the results from this tutorial will only works well in browsers that support CSS3 transitions like Chrome, Safari and Firefox. The techniques that involved are CSS3 Transitions together with the :hover pseudo-class, and other CSS properties for styling as well. In today’s tutorial we’re going to create some simple but fancy hover effects on thumbnails using CSS only.
