background preloader

Customize checkboxes and radio buttons with iCheck (jQuery and Zepto) plugin

Customize checkboxes and radio buttons with iCheck (jQuery and Zepto) plugin

Springy - A force directed graph layout algorithm in JavaScript. Trends in interactive design 2013 Style checkbox and radio - prettyCheckable jQuery Plugin Install & Setup Download the files (or fork it) and include jQuery 1.9+ and prettyCheckable files (make sure you're mapping the sprite correctly on your CSS) Write your inputs and add a class for the jQuery selector: Setup prettyCheckable for your inputs and you're all set: for (var i = inputList.length - 1; i >= 0; i--) { $(inputList[i]).prettyCheckable(); } You can start the plugin with the options you see on the documentation bellow and they will be applied to all matching inputs: If you want to apply something to all the inputs but you need a few specific ones to be different, you can add the specifics inline: Documentation CSS only (AKA lame option) You can simply use the images inside /img/sprite and create your own sprite manually. Grunt & Compass (Fuck Yeah Method) Sprites are being automagically generated with the help of Compass. Clone this repo; Install Sass & Compass; Run 'npm install'; Run 'grunt' to build it or 'grunt w' to watch for changes. None of the parameters is mandatory.

jQuery – Dynamically Adding Form Elements @ Charlie Griefer You know the situation. You have a form with ‘x’ number of text inputs. Eventually, you realize ‘x’ may not be enough for all users. But in the interest of keeping the page clean, you don’t want to arbitrarily continue to add these elements. What you really want to do is show a minimal amount initially, and then give the user the option of adding as many more (within reason) as that particular user might need. Why create any DOM elements that aren’t going to be used? First, you’ll want to see it in action. Let’s take a look at the code first, and then break it down. The Markup Let’s look at what’s going on, starting with the form itself: Very straightforward markup. Next up is another div that holds 2 button elements, each with a unique id attribute. That’s it for our markup. jQuery – The First Step Moving to the jQuery code itself. At it’s most basic, jQuery adheres to the principle of “find something, do something”. jQuery – Adding a New Form Element Again, we’re using method chaining.

Bootstrap Markdown Bootstrap-Markdown designed to be easily integrated with your bootstrap project. It exposes useful API that allow you to fully hook-in into the plugin Switch regular textarea within your form into Bootstrap-Markdown editor seamlessly by adding data-provide="markdown" attribute Code <form><input name="title" type="text" placeholder="Title?" Inline editing with Bootstrap-Markdown is done by adding data-provide="markdown-editable" attribute <div data-provide="markdown-editable"><h3>This is some editable heading</h3><p>Well, actually all contents within this "markdown-editable" context is really editable. Result This is some editable heading Well, actually all contents within this "markdown-editable" context is really editable. Beside using above data-attributes, you could call it via code Noted that Bootstrap-Markdown could be used as a standalone input (without any form). Some examples Custom width using data-width="400" attribute Hidden buttons using data-hidden-buttons="cmdBold" attribute

Text Opening Sequence with CSS Animations A simple and fun text opening sequence effect with blurry letters using CSS animations. View demo Download source Today I want to show you how to create a fun little typography effect with CSS animations and text shadows. Maybe you know those eerie opening sequences of movie trailers where some text is being faded in on a dark background. After seeing Introducting Briefs (which is not a terror movie trailer but a preview for an interesting app) I got inspired for recreating the effect using CSS. The idea is to blur text and make it appear with a rotation while animating the space between the letters. So, let’s do it. Please note: this is highly experimental and only works as intended in browsers that support the respective CSS properties. The idea is to have a couple of sentences fade in with the aforementioned effect, so we’ll want to wrap every appearing bit into an h2: Remember, this is just a experimental effect; let’s not be too strict with markup best practices :) And the last one?

How to create a jQuery slidedown toggle effect div tutorial 7th April 2013 Intro Within this tutorial we are going to create a toggle effect slide down div which will open a close on the same button. Step 1: The Css First we will write some css to style it a little. Lets run you throught the main css which helps with the magic. The html,body css is not needed, this is just styling the body of the html document. The dropdownwrap can be styled to how it fits your site, the only inportant bit is the display:none; This tells the browser not to show it, we will show this using jQuery a little later within the tutorial. To be honest that is the only bit of the css you really need to know, the other bits are just styling the page. Step 2: The Html Now we have created the css all we have is the html and jQuery section, in this section we will be looking at the html. First we need the dropdown div. You can put all your information you want to show within the drop down within this div! Step 3: The jQuery This is the last part of the tutorial. Now for the custom jQuery!

Zebra_Form, a jQuery augmented PHP library for creating and validating HTML forms Get the latest updates on this PHP library via RSS Zebra_Form is a PHP library that simplifies the process of creating and validating HTML forms. Its object-oriented structure promotes rapid HTML forms development and encourages developers to write clean and easily maintainable code. It frees the developers from the repetitive task of writing the code for validating forms by offering powerful built-in client-side and server-side validation. Zebra_Form has integrated cross-site scripting (XSS) prevention mechanism that automatically strips out potentially malicious code from the submitted data, and also features protection against cross-site request forgery (CSRF) attacks. It also prevents automated SPAM posts, out of the box and without relying on CAPTCHA by using honeypots. Forms layout can be generated either automatically or manually – using templates. The client-side validation is done using jQuery 1.5.2+ Features review Requirements jQuery 1.5.2+ Installation How to use Live demos The HTML

Cikonss | Pure CSS Responsive Icons Aloha Editor - HTML5 WYSIWYG Editor iCheck - Des checkbox et radio boutons design avec jQuery iCheck est un plugin jQuery permettant de donner du style à vos input checkbox et input radio, à la fois sur desktop et mobile. Vous vous arrachez les cheveux à la vue des belles checkbox du Webdesign fourni par votre graphiste ? Pas de panique, iCheck est là pour vous! Il s'agit d'un plugin jQuery permettant de personnaliser graphiquement vos checkbox et radios avec un ensemble de thèmes et couleurs: 6 thèmes et skins sont proposés par défaut, on retrouve même un skin Flat UI pour les fans de la nouvelle tendance webdesign. Les checkbox et radios peuvent être présentés sous forme de ligne. Chaque état des boutons est correctement designé. Côté utilisation, c'est très simple: 1. 2. 3. Vous n'avez qu'à appeler le plugin jQuery avec l'une des options disponibles: 01. 03. handle: '', 05. checkboxClass: 'icheckbox', 07. radioClass: 'iradio', 09. checkedClass: 'checked', 11. disabledClass: 'disabled', 13. hoverClass: 'hover', 15. focusClass: 'focus', 17. activeClass: 'active', 19. labelHover: true, Sympa non ?

8 Amazing jQuery Lightbox Plugins You Need to Check Out jQuery can be defined as a cross browser java script library. It is a multi-browser java script library and is basically designed for the purpose of simplifying the scripting of HTML on the client side. This is also the most popular java script library which is used by the people these days. jQuery has a lot of advantages such as it is absolutely free of any cost and it is also open source software. Using jQuery the developers can also create plug-ins and also create low level interactions. 1) Pirobox 2) Shadowbox Js Shadowbox is a web-based media viewer application that supports all of the web’s most popular media publishing formats. 3) Colorbox A lightweight customizable lightbox plugin for jQuery. 4) Ceebox a Thick box Videobox Mashup 5) Pretty Photo jQuery Lightbox “prettyPhoto is a jQuery lightbox clone. 6) Lightview Lightview was built to change the way you overlay content on a website. 7) GreyBox GreyBox can be used to display websites, images and other content in a beautiful way.

A Free Web & Mobile App for Reading Comfortably — Readability

Related: