Filter Functionality with CSS3. Using the general sibling combinator and the :checked pseudo-class, we can toggle states of other elements by checking a checkbox or a radio button. In this tutorial we will be exploring those CSS3 properties by creating a experimental portfolio filter that will toggle the states of items of a specific type. View demo Download source The idea is inspired by Roman Komarov’s brilliant “Filtering elements without JS” experiment where he uses checkboxes and radio buttons for filtering colored shapes. The beautiful Dribbble shots used in the demos are by Mike from Creative Mints. The Markup Let’s start with the markup. Our aim is to have four filter buttons that, once clicked, will make the respective type appear or stand out. The unordered list will contain all the portfolio items as anchors with an image and a span. The CSS We’ll be going through three example effects, but first, let’s take a look at the common style.
The main section container will have a specific width: Example 1 Example 2 Demos. CSS Click Events. An article about different experimental approaches of employing click events using CSS only. It summarizes and shows some clever hacks and smart tricks. For the last few years, we’ve been witnessing the wonderful expansion of front-end languages especially HTML with the HTML5 specifications and CSS with the CSS Level 3 specifications. We can now do a lot of stuff we couldn’t have done without JavaScript or images before, like rounded corners, gradients, responsive layouts, grid stuff, transparency in colors, and so much more. But one thing we’ve always been missing is the possibility to handle click events with CSS.
Actually, some people think we shouldn’t have this option since interactions are more like a JavaScript kind of stuff. I understand the idea, but it always bothered me to have to use JavaScript for a very simple click event. Anyway, as of today, CSS doesn’t provide any official way to handle a click event in CSS. Disclaimer Checkbox hack Aaaaah, the checkbox hack. How it works. Alsacréations : Actualités et tutoriels HTML, HTML5, CSS, CSS3, standards du web. Contre-Courant - Laboratoire créatif - Agence de communication Nantes - Loire Atlantique. Www.dontclick.it.
Nominees Gallery - CSS Web Design Awards - CSSDA. :: BENOIT VIEILLARD Graphisme Illustration Communication :: Fairgrounds Night. Graphisme & interactivité blog par Geoffrey Dorne. Tuto.