Wednesday, October 30, 2013

jQuery Knob

http://anthonyterrien.com/knob/

  • canvas based ; no png or jpg sprites.
  • touch, mouse and mousewheel, keyboard events implemented.
  • downward compatible ; overloads an input element.

Example

  <input type="text" value="75" class="dial">    <script>  $(function() {      $(".dial").knob();  });  </script>  

Options

Options are provided as attributes 'data-option':

  <input type="text" class="dial" data-min="-50" data-max="50">  

... or in the "knob()" call :

  $(".dial").knob({                  'min':-50                  ,'max':50                  });  

The following options are supported :

Behaviors :

  • min : min value | default=0.
  • max : max value | default=100.
  • step : step size | default=1.
  • angleOffset : starting angle in degrees | default=0.
  • angleArc : arc size in degrees | default=360.
  • stopper : stop at min & max on keydown/mousewheel | default=true.
  • readOnly : disable input and events | default=false.

UI :

  • cursor : display mode "cursor", cursor size could be changed passing a numeric value to the option, default width is used when passing boolean value "true" | default=gauge.
  • thickness : gauge thickness.
  • lineCap : gauge stroke endings. | default=butt, round=rounded line endings
  • width : dial width.
  • displayInput : default=true | false=hide input.
  • displayPrevious : default=false | true=displays the previous value with transparency.
  • fgColor : foreground color.
  • inputColor : input value (number) color.
  • font : font family.
  • fontWeight : font weight.
  • bgColor : background color.

Hooks

  <script>  $(".dial").knob({                      'release' : function (v) { /*make something*/ }                  });  </script>  
  • 'release' : executed on release

    Parameters :

    • value : int, current value
  • 'change' : executed at each change of the value

    Parameters :

    • value : int, current value
  • 'draw' : when drawing the canvas

    Context :

    • this.g : canvas context 2D (see Canvas documentation)
    • this.$ : jQuery wrapped element
    • this.o : options
    • this.i : input
    • ... console.log(this);
  • 'cancel' : triggered on [esc] keydown

  • 'error' : called if the browser doesn't support canvases and the plugin didn't initialize as a result

The scope (this) of each hook function is the current Knob instance (refer to the demo code).

Example

  <input type="text" value="75" class="dial">    <script>  $(".dial").knob({                   'change' : function (v) { console.log(v); }                  });  </script>  

Dynamically configure

  <script>  $('.dial')      .trigger(          'configure',          {          "min":10,          "max":40,          "fgColor":"#FF0000",          "skin":"tron",          "cursor":true          }      );  </script>  

Set the value

  <script>  $('.dial')      .val(27)      .trigger('change');  </script>  

Supported browser

Tested on Chrome, Safari, Firefox, IE 9.0.

MIT License

Copyright (C) 2013 Anthony Terrien

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Monday, October 28, 2013

20 Web Design Examples of Blog Front-end Structures

For our weekly website selection, today we bring you a collection related to blogging: below are the best and most suggestive websites created for blogging or generating chronologically-ordered content. Though the important thing in blogging is the content itself, as a blog centered on web design and user interface, today we're going to focus on the structures for presenting that content with the aim of offering inspiring ideas for remodelling or creating a blog in the future.

Presenting the blog items: first interface

There are many different ways to present information on a website designed for generating content: in some cases they are aimed at sharing content from other blogs, videos, images or other multimedia elements according to the communication needs. From the classic vertical list posts of chronological entries, to the most innovative pinboard interfaces that are so fashionable lately, since the rise of Pinterest...and of course running through grid displayed presentation with infinite scroll or horizontal scroll cards.

Classic list posts | Horizontal scroll | Grid system | Pin board blogs


Grid

Entries are viewed on a grid of rows and columns. They can be ordered chronologically or otherwise. Often the entries open by displacing the surrounding cells to leave space to show the content of the selected item.



Pin boards

It looks like an announcement or bulletin board where posts are pinned in chronological order. It's similar to a grid distribution but in this case one of the dimensions, usually the rows, has no predefined size and is flexible. The elements build up in the spaces... The social network Pinterest is the main example of this presentation structure.



Classic list posts

The positioning of blog entries is linear and chronological, from most recent to oldest. Scrolling is vertical. It's even common to see the entries already displayed, though there is usually a link to see the entries on another page. In lists the scroll at the end of the page may not be infinite, using the pagination of the list of entries.


Horizontal Scroll



Fotologs

Inspirational and Useful Resources for App Designers

Here we go with a resources post! Here we bring you one of the best collections of utilities and templates for designing apps that you can find.

This is a great collection of GUI's, mock-ups, Complete UI and Design elements with PSD files for download, skeuomorphic interface samples, icons, printable sketching templates which we have gathered here for all app designers and we are sure you will find very useful. Save this entry to your favorites!

Ready to download and put to work.

  • UI (User Interfaces) and Design Elements Freebies

    Complete User Interface samples and UI elements like slides, buttons, skeuomorphic interfaces with PSD files available.

  • Icon Templates and Best Practices

    Resources to create iOS and Android Icons. How much creativity you can fit in a small little smartphone button? Play with 3D to create the most spectacular and colorful icons.

    • iOS App Icon Template



      This great resource is a photoshop template that use Smart Objects to automate the process of rendering the various sizes that needs to be bundled with iOS Apps. Editing the largest size you obtain the smaller sizes automatically.

      Download from Appicontemplate

    • Android App Icon Template


      Android App Icon Template

      Download from Sparktechsoft

    • App Icon Template


      App Icon Template

      Download from Freebies Gallery

    • App Icon Template


      App Icon Template

      Download from KB - Sebastien Gabriel

    • Icon Insider for Icon Designers


      Icon Insider for Icon Designers

      Download from iTunes Store

  • Inspirational Resources for Mobile Designers

    If you need inspiration to design mobile applications, here are a few resources and ideas you can use to call your muses.

    • Mobile Mozaic


      Mobile Mozaic

    • Lovely UI


      Lovely UI

    • Ultra UI


      Ultra UI

    • Creattica Mobile Inspiration


      Creattica Mobile Inspiration

    • Mobile Patterns


      Mobile Patterns

    • My Color Screen


      My Color Screen

    • Inspired UI


      Inspired UI

    • Pinterest


      Pinterest

    • Behance


      Behance

    • Dribbble


      Dribbble

  • GUI Elements

    iPhone, iPad and Android GUI's and Sketch Elements. Do not miss a button or graphic interfaces to the operating system!

  • Sketching and wireframing templates for Mobile Design

    Online and Printable Sketching templates for iPone, iPad, Tablets and multiple devices in order to test the first strokes of your sketch, change, tweak ... and change again.

    • UX Sketching And Wireframing Templates For Mobile Projects


      UX Sketching And Wireframing Templates For Mobile Projects

      Download from Smashing Magazine

    • Printable sketch templates for web, mobile and tablet.


      iPad Sketch Elements AI

      Download from Interfacesketch

    • Beautiful iPad wireframe templates for Google Docs


      iPad wireframe templates for Google Docs

      Download from Mortenjust

  • PSD and Vector Mock-Ups to show your apps

    Fully-scalable vector shapes Mock-ups. Prepare a good presentation for your customers to support your design work. Remember that a picture often gets cared more than any tirade of text can come to explain.

    • iPad Psd Vector Mockup Template


      iPad Psd Vector Mockup Template

      Download from Pixeden

    • iPhone 5 Psd Vector Mockup


      iPhone 5 Psd Vector Mockup

      Download from Pixeden

    • Perspective App Screen Mock-Up


      Perspective App Screen Mock-Up

      Download from Pixeden

    • iPad Mini Psd Vector Mockup


      iPad Mini Psd Vector Mockup

      Download from Pixeden

  • Fonts, Icons and Graphic Resources

    Scalable and responsive fonts and icons help you design the best suited web apps for any platform.

    • Mobile FontFonts. Build your app with better type.


      Mobile FontFonts. Build your app with better type

      Mobile FontFonts are created for mobile app designs. The concept is similar to webfonts, these fonts are ptimized for the device screen

    • Thousands of free Vector icons and Icon Webfonts for Mobile Interfaces and Responsive web design


      Thousands of free Vector icons and Icon Webfonts