• RSS
  • Facebook
  • Twitter
Comments


Posted on the outubro 23rd, 2009 under Jquery by Renan Lima
1.jQuery Tabbed Interface / Tabbed Structure Menu Tutorial
Tabbed Interface ou Tabbed estrutura do menu esta realmente ficando famoso em web design e desenvolvimento. Este tutorial irá mostrar-lhe como construir sua própria interface de abas usando jQuery com slideDown / slideUp efeito. Certifique-se de verificar o demo, você definitivamente vai gostar.
Preview || Download
2. Animated Menus Using jQuery
Aprenda a criar este menu com um efeito surpreendente em animação usando apenasXHTML simples, CSS e Javascript semelhante ao Dragon Interactive (dragoninteractive.com).
PS: Testei e este menu não funcionou corretamento no ie6… D:
Preview || Download
3.Create a Cool Animated Navigation with CSS and jQuery

Animação e feedback visual são ótimas maneiras de ajudar o usuário a navegar e interagir com um website. Embora tradicionalmente Adobe Flash foi e é, a opção para quem quer animar algum websites, mas também tem seus contratempos na questão otimização (SEO)… Esta é uma alternativa para quem quer evitar o Flash totalmente.
Preview || Download
4.jQuery ListNav Plugin
Este plugin jQuery fornece uma maneira fácil de adicionar uma discreta carta baseada widget de navegação para qualquer lista UL ou OL. Facilmente estilizados (via CSS) a barra de navegação aparece acima da lista, mostrando ao usuário as letras de A-a-Z. Clicar em uma das letras da lista de filtros para mostrar apenas os itens na lista que começam com essa letra. Pairando sobre uma carta (opcionalmente) mostra uma contagem acima da carta, que indica quantos itens serão exibidos se que a carta é clicado. Outras opções dar-lhe o controle sobre a funcionalidade básica.
Preview || Download
5. jqDock menu
Transformar um conjunto de imagens em um Mac-like Dock menu horizontal ou vertical, com ícones que se expandem em capotamento, e os rótulos opcionais.
Preview || Download
6.Sliding Jquery Menu
Este tutorial explica como funciona um deslizamento de menu jquery e você pode ver o efeito em ação nas página PSDTuts no canto superior direito.
Preview || Download
7.CSS Sprites 2 – It’s JavaScript Time
Preview
8. CSS Mac Dock Menu
Se você é um grande fã do Mac, você vai adorar este menu dock CSS. Ela está usando biblioteca JQuery Javascript. Ele vem com dois estilos dock – superior e inferior. Este menu dock CSS é perfeita.
Preview || Download
9.Kwicks for jQuery
Kwicks para jQuery começou como uma porta do efeito Mootools insaciavelmente atrativo, mas evoluiu para um elemento altamente personalizável e versátil.
7 Examples || Download
10.Jquery File Tree
Preview || Download
11.Learning jQuery: Fading Menu – Replacing Content
Otimo tutorial do CSS-Tricks explicando como usar CSS com jQuery, desta vez ele ensina como usar jquery desaparecendo no menu de opções.
Preview || Download
12. How to Make a Smooth Animated Menu with jQuery
Já viu algumas navegação jQuery excelentes que deixou você com vontade de fazer uma de sua preferência? Este tutorial ensina como fazer isso através da construção de um menu e animá-lo com alguns efeitos suaves.
Preview || Download
13.Create Vimeo-like top navigation
Aprenda a criar uma navegação como no site do YouTube, qui é apenas XHTML, CSS.
Preview + Vimeo site || Download
14. jQuery (mb)Menu 2.3
Este é um componente jQuery poderoso para construir facilmente um menu com vários níveis ou um menu contextual (botão direito) de uma forma intuitiva!
Você pode adicionar submenus como você desejar, se o seu submenu ou menu não está declarado na página, o componente irá obtê-lo via ajax chamando o modelo de página com o id do menu que você precisa (o valor do “menu” atributo) Página ajax deve retornar um código bem formatado como no exemplo abaixo.
Preview || Download
15. Coda Slider
Preview || Download
16. jQuery idTabs
idTabs é um plugin para jQuery. Ele faz a adição de guias em um site super simples. Mas também pode abrir a porta para infinitas possibilidades.
Preview || Download
17. Create a Slick Tabbed Content Area using CSS & jQuery
Um dos maiores desafios para os designers da web é encontrar maneiras de colocar um monte de informações em uma página sem perder a usabilidade. Guias de conteúdo é uma ótima maneira de lidar com esta questão e tem sido amplamente utilizada em blogs recentemente. Isso é ótimo tutorial explicando para construir uma caixa de informação simples com guias em HTML, em seguida, fazê-lo funcionar usando algum Javascript simples, e então finalmente conseguir a mesma coisa usando a biblioteca jQuery.
Preview
18. LavaLamp for jQuery lovers!
Preview || Download
19. Animated Drop Down Menu with jQuery
Drop down menus são uma maneira realmente conveniente para colocar um menu grande em um espaço muito pequeno. Por muito tempo as pessoas têm usado apenas um elemento de formulário padrão para queda dos menus, mas com um esforço mínimo você pode criar um efeito muito mais interessante usando jQuery e CSS.
Preview || Download
20. Using jQuery for Background Image Animations
Cinco maneiras diferentes de criar animações de fundo da imagem com Jquery.
Preview
21. How To Create A ‘Mootools Homepage’ Inspired Navigation Effect Using jQuery
Como você sabe, há uma série de concorrentes nas bibliotecas javascript em torno destes dias. Apesar de eu preferir o jQuery, eu sempre gostei da forma como o menu MooTools funcionou. Portanto, neste tutorial vamos recriar esse mesmo efeito … mas isso será feito em jQuery!
Preview || Download
22. Menumatic Mootools
Preview Vertical || Preview horizontal || Download
23. jQuery convertion: Garagedoor effect using Javascript
For all the jQuery lovers: Here is the Garage Door effect. Now in jQuery!
Preview || Download
24. Perspective tabs
Perspective tabs é uma simples Mootools 1,2 plug-in que permite um número lagre de guias para caber em um espaço pequeno.
25. Fisheye Menu
Fisheye Menu é um menu de expansão com base no doc MacOSX.
Download
Fonte: http://blog.pixelfont.com.br


Postado por Fernando Schimit - Fox Creative
[...]

Categories:
Comments


Created by Martin Angelov on Sep 10th, 2009

Introduction

One of the main benefits of using a popular java script library, such as jQuery, is the incredible number of available plug-ins that will kick-start any development project.
Today we are going to build a custom gallery that scans a folder of images and outputs a slick gallery, utilizing PHP, CSS, jQuery and the jQuery Lightbox plug-in.
There is no need to download the plug-in – I’ve included it in the demo files, so grab them and get on reading.

The XHTML

We start off with our XHTML front-end.

demo.php

01<div id="container">
02 
03<div id="heading">
04<h1>A cool jQuery galleryh1>
05div>
06<div id="gallery">
07 
08php
09//our php code goes here
10?>
11 
12<div class="clear">div>
13div>
14 
15<div id="footer">
16div>
17 
18div>
And that is basically all there is to it. Note the highlighted area – this is where we put our PHP code, that will generate the gallery images. Now lets go through how this is done.

The PHP

The idea is simple – our PHP back-end is going to scan a folder that we’ve set up with our gallery images, and turn it into a fancy CSS & jQuery gallery. The great thing about this strategy is that it is incredibly easy to set up a gallery, and adding images to an existing one is a charm – just dump them in the gallery’s directory via FTP and it is ready to go.

demo.php

01$directory = 'gallery'; //where the gallery images are located
02 
03$allowed_types=array('jpg','jpeg','gif','png'); //allowed image types
04 
05$file_parts=array();
06$ext='';
07$title='';
08$i=0;
09 
10//try to open the directory
11$dir_handle = @opendir($directory) or die("There is an error with your image directory!");
12 
13while ($file = readdir($dir_handle))    //traverse through the files
14{
15    if($file=='.' || $file == '..') continue;   //skip links to the current and parent directories
16 
17    $file_parts = explode('.',$file);   //split the file name and put each part in an array
18    $ext = strtolower(array_pop($file_parts));  //the last element is the extension
19 
20    $title = implode('.',$file_parts);  //once the extension has been popped out, all that is left is the file name
21    $title = htmlspecialchars($title);  //make the filename html-safe to prevent potential security issues
22 
23    $nomargin='';
24    if(in_array($ext,$allowed_types))   //if the extension is an allowable type
25    {
26        if(($i+1)%4==0) $nomargin='nomargin';   //the last image on the row is assigned the CSS class "nomargin"
27        echo '
28        
class="pic '.$nomargin.'" style="background:url('.$directory.'/'.$file.') no-repeat 50% 50%;">
30        ';
31 
32        $i++;   //increment the image counter
33    }
34}
35 
36closedir($dir_handle);  //close the directory
By traversing through the files in the directory and skipping the non-image files, we output some XHTML code for every image . This code (lines 28-39) consists of a div container, with a CSS class pic (and in some cases a nomargin, more on that later), and we set its background to the image file via the style attribute. We position the image in the center of the background by specifying its position to be 50% 50%. This centers it both horizontally and vertically and thus shows  only the middle part, that fits into the div container’s size. This creates a nice thumbnail, with no need of actually resizing the image.
This works best with images with smaller resolutions, so you should consider resizing those 10 megapixel photos before uploading them.
The div contains a hyperlink which is linked to the image and has a title of the image filename. Both these attributes are used by the lightBox plugin to generate the lightbox gallery. So by renaming the file, you can change the caption that shows under it.
You may wonder what is the point of that nomargin class? Every image in the gallery has a right and a bottom margin. But this means that it is not possible the last element of each row to align with the right part of the heading div and it looks amateurish. So we assign this special class, which clears the right margin for the last element on each row and gives us a proper alignment.
The jQuery Gallery
The jQuery Gallery

The CSS

Everything is set up, but we still have to give it that cool look.

demo.css

01/* first reset some of the elements for browser compatibility */
02body,h1,h2,h3,p,td,quote,small,form,input,ul,li,ol,label{
03    margin:0px;
04    padding:0px;
05    font-family:Arial, Helvetica, sans-serif;
06}
07 
08body{   /* style the body */
09    margin-top:20px;
10    color:white;
11    font-size:13px;
12    background-color:#222222;
13}
14 
15.clear{ /* the clearfix class */
16    clear:both;
17}
18 
19a, a:visited {  /* a:visited is needed so it works properly in IE6 */
20    color:#00BBFF;
21    text-decoration:none;
22    outline:none;
23}
24 
25a:hover{    /* the hover effect */
26    text-decoration:underline;
27}
28 
29#container{ /* the main container div */
30    width:890px;
31    margin:20px auto;
32}
33 
34#heading,#footer{   /* the header and the footer share some of their style rules */
35    background-color:#2A2A2A;
36    border:1px solid #444444;
37    height:20px;
38    padding:6px 0 25px 15px;
39    margin-bottom:30px;
40    overflow:hidden;
41}
42 
43#footer{    /* ..but not all */
44    height:10px;
45    margin:20px 0 20px 0;
46    padding:6px 0 11px 15px;
47}
48 
49div.nomargin{   /* our special nomargin class */
50    margin-right:0px;
51}
52 
53.pic{   /* divs that hold all the pictures in the gallery */
54    float:left;
55    margin:0 15px 15px 0;
56    border:5px solid white;
57    width:200px;
58    height:250px;
59}
60 
61.pic a{ /* in every .pic container there is a hyperlink exactly the size of the container */
62    width:200px;
63    height:250px;
64    text-indent:-99999px;
65    display:block/* don't forget that widths and heights of hyperlinks are useless without display:block */
66}
67 
68h1{ /* style the heading */
69    font-size:28px;
70    font-weight:bold;
71    font-family:"Trebuchet MS",Arial, Helvetica, sans-serif;
72}
73 
74h2{ /* the footer text */
75    font-weight:normal;
76    font-size:14px;
77    color:white;
78}

The jQuery

To make it all tick, we need to include the jQuery java script library in our page, and add the lightBox plugin. The following code was taken from the head section of demo.php:
1<link rel="stylesheet" type="text/css" href="lightbox/css/jquery.lightbox-0.5.css">
2<link rel="stylesheet" type="text/css" href="demo.css" />
3 
4<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">script>
5<script type="text/javascript" src="lightbox/js/jquery.lightbox-0.5.pack.js">script>
6<script type="text/javascript" src="script.js">script>
On line 1 we include the lightbox plugin’s CSS file, which styles the lightbox that displays the images. On line 2 we include our own CSS file.
Line 4 is where we include the jQuery library from Google’s CDN. Later come the lightbox plugin itself and our own script.js file.
Now we are ready to put the finishing touch.

script.js

01// after the page has finished loading
02$(document).ready(function(){
03 
04    $('.pic a').lightBox({
05    // we call the lightbox method, and convert all the hyperlinks in the .pic container into a lightbox gallery
06 
07        imageLoading: 'lightbox/images/loading.gif',
08        imageBtnClose: 'lightbox/images/close.gif',
09        imageBtnPrev: 'lightbox/images/prev.gif',
10        imageBtnNext: 'lightbox/images/next.gif'
11 
12    });
13 
14});
The lighbox() method takes an object as an optional parameter. The only reason we provide any parameters is that I changed the default location of the plugin, putting it in a subfolder /lightbox which aids for a cleaner file structure. Unfortunately the images that the plug-in uses become inaccessible and have to be provided manually.
With this our gallery is complete.

Conclusion


Postado por Fernando Schimit - Fox Creative
[...]

Categories: ,
Comments


Photoshop Design
Created by Martin Angelov on Feb 16th, 2010
Web development is an area in which you have to keep up with the latest technologies and techniques, so that you are at the top of your game.  And no wonder – this is an area which changes with an amazing pace. What is the standard now will be obsolete in just a couple of years.
But changes do not come from nowhere. The early adopters are already using what we are going to use day-to-day a few years from now. One of these technologies is HTML5 – the new version of the fundamental language of the web.
Today we are making a HTML5 web template, using some of the new features brought by CSS3 and jQuery, with the scrollTo plug-in. As HTML5 is still a work in progress, you can optionally download a XHTML version of the template here.

Step 1 – The Design

Every design process starts with an initial idea which you later build upon. At this stage, designers usually go with programs such as Photoshop, to work on the details and see how it will all fit together.
Photoshop Design
Photoshop Design
After this, the design is hand coded with HTML and CSS going hand by hand, moving from designing the background, colors and fonts, to detail work on the content section.

Step 2 – HTML

It is a good time to note, that HTML5 is still a work in progress. It will remain so probably till around 2022 (I am absolutely serious about this). However some parts of the standard are complete, and can be used today.
In this tutorial, we are using a few of the tags introduced with this new version of HTML:
  • header – wraps your page header;
  • footer – wraps your page footer;
  • section – groups content into sections (e.g. main area, sidebar etc);
  • article – separates the individual articles from the rest of the page;
  • nav – contains your navigation menu;
  • figure – usually contains an image used as an illustration for your article.
These are used exactly as you would use normal divs. With the difference being that these tags organize your page semantically. In other words, you can present your content in such a way, that the subject matter of your page can be more easily determined. As a result services, such as search engines, will bring you more targeted visitors and thus boost your revenue (and theirs actually).
However, there are some implications in using HTML5 today. One of the most notable is the IE family of browsers, which does not support these tags (it can be fixed with a simple JavaScript include file though). This is why you should base your decision for moving to HTML5 on your site’s audience. And just for this purpose, we are releasing a pure XHTML version of this template as well.

template.html – Head section

01
02 
03<html>
04<head>
05 
06    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
07 
08    <title>Coding A CSS3 & HTML5 One Page Template | Tutorialzine demotitle>
09 
10    <link rel="stylesheet" type="text/css" href="styles.css" />
11 
12    
13 
14    
26 
27head>
You can notice the new at line one, which tells the browser that the page is created with the HTML5 standard. It is also much shorter and easier to remember than older doctypes. After specifying the encoding of the document and the title, we move on to including a special JS file that will enable Internet Explorer (any version) to render HTML5 tags properly. Again, this means that if a visitor is using IE and has JavaScript disabled, the page is going to show all messed up. This is why, depending on your audience, you should consider the regular XHTML version of this template, which works in any browser and is released free for all of our readers here.

template.html – Body Section

01<body>
02 
03    <section id="page">
04 
05    <header>
06 
07        <h1>Your Logoh1>
08 
09        <h3>and a fancy sloganh3>
10 
11        <nav class="clear">
12 
13            <ul>
14 
15                <li><a href="#article1">Photoshoota>li>
16                <li><a href="#article2">Sweet Tabsa>li>
17                <li><a href="#article3">Navigation Menua>li>
18 
19            ul>
20 
21        nav>
22 
23    header>
Here we use the new section tags, which divide your page into separate semantic sections. Outermost is the #page section which is set to a width of 960px in the style sheet (a fairly standard width with older computer displays in mind). After this comes the header tag and the navigation tag. Notice the href attributes of the links – the part after the hash symbol # corresponds to the ID of the article we want to scroll to.

template.html – Article

01
02 
03<div class="line">div
04 
05<article id="article1">
06 
07    <h2>Photoshoot Effecth2>
08 
09    <div class="line">div>
10 
11    <div class="articleBody clear">
12 
13        <figure>
14 
15            <a href="http://tutorialzine.com/2010/02/photo-shoot-css-jquery/">
16                <img src="http://tutorialzine.com/img/featured/641.jpg" width="620" height="340" />a>
17 
18        figure>
19 
20        <p>In this tutorial, we are creating a photo shoot effect with our just-released PhotoShoot jQuery plug-in. With it you can convert a regular div on the page into a photo shooting stage simulating a camera-like feel.p>
21 
22        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer luctus quam quis .... p>
23 
24    div>
25 
26article>
27 
28
The markup above is shared between all of the articles. First is the dividing line (the best solution semantically would be an
line, which in HTML5 has the added role of a logical dividing element, but unfortunately it is impossible to style in a cross-browser fashion, so we will stick with a DIV). After this we have the new article tag, with an unique ID, which is used by the navigation to scroll the page. Inside we have the title of the article, two paragraphs and the new figure tag, which marks the use of images in the article.

template.html – Footer

01        <footer>
02 
03            <div class="line">div>
04 
05            <p>Copyright 2010 - YourSite.comp>
06            <a href="#" class="up">Go UPa>
07            <a href="http://tutorialzine.com/" class="by">Template by Tutorialzinea>
08 
09        footer>
10 
11    section>
12 
13    
14 
16    <script src="jquery.scrollTo-1.4.2/jquery.scrollTo-min.js">script>
17    <script src="script.js">script>
18 
19    body>
20 
21html>
Lastly, we have the footer tag, which does exactly what you expect it to do. At the bottom of the page are the rest of the JavaScript  includes, which add the jQuery library and the scrollTo plug-in, which we are going to use in the next steps.
HTML5 CSS3 Website Template
An HTML5 & CSS3 Website Template

Step 3 – CSS

As we are using HTML5, we have to take some extra measures with the styling. The tags that this new version of HTML introduces, are not yet provided with a default styling. This is however easily fixed with a couple of lines of CSS code and the page works and looks as it is supposed to:

styles.css – Part 1

01header,footer,
02article,section,
03hgroup,nav,
04figure{
05    /* Giving a display value to the HTML5 rendered elements: */
06    display:block;
07}
08 
09article .line{
10    /* The dividing line inside of the article is darker: */
11    background-color:#15242a;
12    border-bottom-color:#204656;
13    margin:1.3em 0;
14}
15 
16footer .line{
17    margin:2em 0;
18}
19 
20nav{
21    background:url(img/gradient_light.jpg) repeat-x 50% 50% #f8f8f8;
22    padding:0 5px;
23    position:absolute;
24    right:0;
25    top:4em;
26 
27    border:1px solid #FCFCFC;
28 
29    -moz-box-shadow:0 1px 1px #333333;
30    -webkit-box-shadow:0 1px 1px #333333;
31    box-shadow:0 1px 1px #333333;
32}
33 
34nav ul li{
35    display:inline;
36}
37 
38nav ul li a,
39nav ul li a:visited{
40    color:#565656;
41    display:block;
42    float:left;
43    font-size:1.25em;
44    font-weight:bold;
45    margin:5px 2px;
46    padding:7px 10px 4px;
47    text-shadow:0 1px 1px white;
48    text-transform:uppercase;
49}
50 
51nav ul li a:hover{
52    text-decoration:none;
53    background-color:#f0f0f0;
54}
55 
56nav, article, nav ul li a,figure{
57    /* Applying CSS3 rounded corners: */
58    -moz-border-radius:10px;
59    -webkit-border-radius:10px;
60    border-radius:10px;
61}
We basically need to set the display value of the new tags to block, as you can see from the first couple of lines. After this we can style them as we would do with regular divs. We style the horizontal lines, the articles, and the navigation buttons, with the latter organized as an unordered list inside of the nav tag. At the bottom we assign the border-radius property for four different types of elements of once, which saves a lot of code.

styles.css – Part 2

01/* Article styles: */
02 
03#page{
04    width:960px;
05    margin:0 auto;
06    position:relative;
07}
08 
09article{
10    background-color:#213E4A;
11    margin:3em 0;
12    padding:20px;
13 
14    text-shadow:0 2px 0 black;
15}
16 
17figure{
18    border:3px solid #142830;
19    float:right;
20    height:300px;
21    margin-left:15px;
22    overflow:hidden;
23    width:500px;
24}
25 
26figure:hover{
27    -moz-box-shadow:0 0 2px #4D7788;
28    -webkit-box-shadow:0 0 2px #4D7788;
29    box-shadow:0 0 2px #4D7788;
30}
31 
32figure img{
33    margin-left:-60px;
34}
35 
36/* Footer styling: */
37 
38footer{
39    margin-bottom:30px;
40    text-align:center;
41    font-size:0.825em;
42}
43 
44footer p{
45    margin-bottom:-2.5em;
46    position:relative;
47}
48 
49footer a,footer a:visited{
50    color:#cccccc;
51    background-color:#213e4a;
52    display:block;
53    padding:2px 4px;
54    z-index:100;
55    position:relative;
56}
57 
58footer a:hover{
59    text-decoration:none;
60    background-color:#142830;
61}
62 
63footer a.by{
64    float:left;
65 
66}
67 
68footer a.up{
69    float:right;
70}
In the second part of the code, we apply more detailed styling to the elements. A width for the page section, a hover property for the figure tag and styles for the links inside of the footer. There are also a few styles that are not included here, but you can see them in styles.css. Now lets continue with the next step.
Structure Of The Page
Structure Of The Page - HTML5 Tags

Step 4 – jQuery

To enhance the template, we will create a smooth scrolling effect once a navigation link has been clicked, using the scrollTo jQuery plug-in that we included in the page earlier. To make it work we just need to loop through the links in the navigation bar (and the UP link in the footer) and assign an onclick event which will trigger the $.srollTo() function, which is defined by the plug-in.

script.js

01$(document).ready(function(){
02    /* This code is executed after the DOM has been completely loaded */
03 
04    $('nav a,footer a.up').click(function(e){
05 
06        // If a link has been clicked, scroll the page to the link's hash target:
07 
08        $.scrollTo( this.hash || 0, 1500);
09        e.preventDefault();
10    });
11 
12});
With this our template is complete!

Wrapping it up

In this tutorial, we leveraged the new semantic features provided by HTML5, to design and code a one-page web template. You can use it for free both personally and commercially, providing you leave the back link intact. If you like this tutorial, be sure to check out our twitter stream as well, where we share the latest and greatest design and development links.


Postado por Fernando Schimit - Fox Creative
[...]

Categories: , ,