Thursday, January 26, 2012

How to Schizo Octopus - Free One Page Portfolio Website Template | blogfreakz.com

Schizo Octopus - Free One Page Portfolio Website Template | blogfreakz.com:

Schizo Octopust is free One Page Portfolio Website Template. This theme is a fixed layout one page portfolio template with two columns. All of the information within the main content area is nested within a div with an id of “container”.

schizooctopus Schizo Octopus   Free One Page Portfolio Website Template

The Wall - Draggable & Endless Content Galleries For MooTools | blogfreakz.com

The Wall - Draggable & Endless Content Galleries For MooTools | blogfreakz.com: The Wall is plugin for MooTools that enables you to create an endless grid. You choose the number of elements, The Wall will see to the rest. Every moment you may know the position of your wall or move it where you like better by clicking or dragging it.
the wall The Wall   Draggable & Endless Content Galleries For MooTools
With The Wall you decide the position of your contents punctually. Every plug is ready to hold your contents, pictures, videos, texts, everything. You are the one who chooses how to show your information.

How to Create a Flexible jQuery Data Heat Map | blogfreakz.com

Create a Flexible jQuery Data Heat Map | blogfreakz.com: Sometimes reading a table’s long and numerous columns can be quite a very cumbersome and tedious task. You want your readers to immediately see the whole picture once they glance at your table’s contents.

118 600x250 Create a Flexible jQuery Data Heat Map

Wednesday, January 25, 2012

Create A good looking Grayscale Image Hover In HTML5 | blogfreakz.com

Create A Grayscale Image Hover In HTML5 | blogfreakz.com:

Create A Grayscale Image Hover In HTML5

It used to be that shifting an image from grayscale to colored and vice-versa as you hover over it required 2 copies of the said image — one in grayscale and the other in color. But thanks to Darcy Clarke for the JavaScript & HTML 5 grayscale in this tutorial, this feat is easier and faster because the grayscale image is generated from the original source.

116 285x175 Create A Grayscale Image Hover In HTML5

Click on the above image for the demo.

Steps:

  1. Get a copy of jquery.js
  2. Paste the code below onto your web page. What the code will do is look for the target images (.item img) and then generate a grayscale version.

How to create A basic CSS Circles


How to create CSS Circles

Here’s a clever technique in creating one of the commonly used shapes in design – the circle. Using only CSS and without any help of Photoshop, you can also make a nice circle for your design elements. Let us take a look at this cool demo (http://davidwalsh.name/dw-content/css-circles.php) which is the masterpiece of David Walsh.





CSS

This sets the border-radius that creates any size of circle display.
.circle {
                border-radius: 50%;
                width: 200px;
                height: 200px;
                /* width and height can be anything, as long as they're equal */
}


Spin animation and CSS gradients

/* Create the animation blocks */
@-webkit-keyframes spin {
                from { -webkit-transform: rotate(0deg); }
                to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
                from { -moz-transform: rotate(0deg); }
                to { -moz-transform: rotate(360deg); }
}

@-ms-keyframes spin {
                from { -ms-transform: rotate(0deg); }
                to { -ms-transform: rotate(360deg); }
}

/* Spinning, gradient circle; CSS only! */
#advanced {
                width: 200px;
                height: 200px;
               
                background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
                background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);
                background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
               
               
                /* webkit chrome, safari, mobile */
                -webkit-animation-name: spin;
                -webkit-animation-duration: 3s; /* 3 seconds */
                -webkit-animation-iteration-count: infinite;
                -webkit-animation-timing-function: linear;

                /* mozilla ff */
                -moz-animation-name: spin;
                -moz-animation-duration: 3s; /* 3 seconds */
                -moz-animation-iteration-count: infinite;
                -moz-animation-timing-function: linear;

                /* microsoft ie */
                -ms-animation-name: spin;
                -ms-animation-duration: 3s; /* 3 seconds */
                -ms-animation-iteration-count: infinite;
                -ms-animation-timing-function: linear;
}

Here's a more example of the CSS Circle you can check out CSS Tutorials for the masses it has a lot of cool CSS tips and tricks.



10 Beneficial Typography eBooks for Design


10 Beneficial Typography eBooks for Design

Typography is an essential graphic element in web design so I’ve compiled 10 helpful eBooks on the subject. Learn new techniques, get inspired with the beautiful styles they present and incorporate them into enhancing your works.

The Right Font for the Job




The Typographer’s Glossary



Meet Your Type


 
Erik Spiekermann’s Typo Tips





Typeface Anatomy




What is Open Type?



Styles, Weights, Widths





A Practical Guide to Web Typography





27 Page Type Classification eBook




Typography Basics




For more of the awesome list of Typography you can check out the site called Web Design it got a lot of cool resources for Website design.

Save Changes In contenteditable As JSON With AJAX


Save Changes In contenteditable As JSON With AJAX

As you know, contents of any element in HTML5 with a contenteditable attribute can be live-edited inside the browser window. But any changes that you apply won't be saved on the actual document itself that is located in the server, so these changes won't appear anymore once you refresh the page.

You can visit the most complete resources for Web Design.
To be able to get around this and have the data saved is to wait for the Return key to be pressed, which then sends the new inner HTML of the element as an AJAX call and blurs the element. Pressing Esc returns the element to its pre-edited state.

A perfect example of this can be found on a demo created by Remy Sharp.

JavaScript

document.addEventListener('keydown', function (event) {
  var esc = event.which == 27,
      nl = event.which == 13,
      el = event.target,
      input = el.nodeName != 'INPUT' && el.nodeName != 'TEXTAREA',
      data = {};

  if (input) {
    if (esc) {
      // restore state
      document.execCommand('undo');
      el.blur();
    } else if (nl) {
      // save
      data[el.getAttribute('data-name')] = el.innerHTML;

      // we could send an ajax request to update the field
      /*
      $.ajax({
        url: window.location.toString(),
        data: data,
        type: 'post'
      });
      */
      log(JSON.stringify(data));

      el.blur();
      event.preventDefault();
    }
  }
}, true);

function log(s) {
  document.getElementById('debug').innerHTML = 'value changed to: ' + s;
}