Super elastic effect to design high impact web menu

This tutorial explais how to design an high impact elastic effect to make original web menu using some lines of Javascript code and MooTools framework. The effect is simple to develope and reuse in your web projects changing only HTML code and CSS. Take a look!

The effect I want to realize is the following. I have a “layer cloud” with some layer overlapped to the others. On “mouse over” the select layer goes down with a nice animation effect and when you release the element this goes up with an elastic effect:

Take a look at this live preview to see this script in action.

Download source code Live Preview

1. HTML code

Create a layer which contains all elements in the “cloud” (in this case I used DIV elements):

<div id=“container”>
<div id=“contact”>This is the layer about me.</div>
<div id=“about”>Contact me? <a href=“mailto:myemail@email.com”>My Email</a></div>
<div id=“profile”>This is my <a href=“http://woork.blogspot.com”>website</a></div>

</div>

2. CSS Code

Use CSS to stylize previous elements how you prefer. In this tutorial I used this CSS code:

#about {
width: 200px;
padding: 8px;
background: #DEDEDE;
color: #333;
position: absolute;
z-index: 1;
left: 31px;
top: 66px;
border:solid 4px #CCC;
}

#about {
width: 200px;
padding: 8px;
background: #DEDEDE;
color: #333;
position: absolute;
z-index: 1;
left: 80px;
top: 37px;
border:solid 4px #CCC;
}

The result is something like this, a “layer cloud” with some layer overlapped to others:

You can add other overlapped layers simply adding new <div> elements in step (1) with the related CSS stlye in step 2. To overlap layer I use CSS properties “position:absolute” and “z-index” for each element.

3. JavaScript code

In order to obtain our elastic effect I used MooTools framework and some lines of Js code.
No fear… it’s very simple! In the <head> tag of the page add a link to MooTools:

<script type=“text/javascript” src=“mootools.svn.js”> </script>

Now, copy and paste this code below the previous line of code in the <head> tag of the page (if you prefer you can also copy this code in a separated .js file and import it in your page):

<script type=“text/javascript”>

window.addEvent(‘domready’, function(){
var zindex = 2;
$(‘#container div’).each(function(item){
var o = item.id
var fx = new Fx.Style(o, ‘margin-top’, {
duration: 1000,
transition: Fx.Transitions.Back.easeInOut,
wait: true
});

item.addEvents({
‘mouseenter’ : function(e){
fx.stop()
fx.start(0,100);
zindex = zindex + 1;
$(o).setStyle(‘z-index’, zindex)
},
‘mouseleave’ : function(e){
fx.stop()
fx.start(0);
zindex = zindex - 1;
$(o).setStyle(‘z-index’, zindex)
}

});
})
});

</script>

In this code I used a MooTools basic knowledge. In the past week I already dedicated several lessons about that. I suggest you to take a look at these post:

Download source code Live Preview

It’s all! Do you have some suggest? Add a comment!

A Very Happy new year to all my readers !!

Happy New Year

A Very Happy new year to all my readers! Thank you for your support throughout 2008 and I look forward to sharing, meeting and working with more of you in 2009. Enjoy some great bubbly at midnight and please drink with responsibility. May you and your loved ones have a joyful 2009.

The NYSE and the Nasdaq will close at 4 p.m. on both Dec 31 and Jan 2. Volume should be below average this week as many portfolio managers will be on vacation.

All the best !!

Sincerely,

AC

Tasty Bits of 2008

As 2008 draws to a close, it’s a good time to reflect on the year. I’ve trawled through the archives and come up with a baker’s dozen of my favourite dishes of the year.

flat bread crackers© by Haalo

Flat bread crackers - I don’t know what was better, the dead simple recipe or the look of those finger-shaped shards.

zucchini falafel© by Haalo

Zucchini Falafel - part of my falafel odyssey, I even managed to make an oven baked version of Sweet Potato Falafel.

gozleme© by Haalo

Gözleme - consider it a type of middle-eastern pizza but the secret is the dough - made with just yoghurt, self-raising flour and salt, it was a revelation.

stuffed sardines© by Haalo

Stuffed Sardines - if you think you don’t like sardines, then try this recipe, I think it might just convert you.

butterflied garlic prawns© by Haalo

Garlic Butter Tiger Prawns - a little bit decadent but a whole lot of delicious.

torta della nonna© by Haalo

Torta della Nonna or Grandmother’s Pie - these next two couldn’t be split so I’ve included them both. I loved this as each bite brought back memories of Italy.

Torta Meringata con Mele© by Haalo

Torta Meringata con Mele or Apple Pie with Meringue - an edible memory. For very special occasions my mother would make this torta and I can’t believe it took me this long to make it myself.

queen of puddings© by Haalo

Queen of Puddings - for such a regal sounding dessert, it really couldn’t be anymore “peasant” in nature.

chocolate pecan cookies© by Haalo

Chocolate Pecan Cookies - these were dubbed “the best cookies ever”

fig twist© by Haalo

Fig Twist - I didn’t do that much yeast baking this year but this one I’m glad to have found the time to make.

strawberry and basil compote© by Haalo

Strawberries and Basil Compote - macerated strawberries find their ideal and usual match in basil. At the base of each dish is a sweet basil pesto made with fresh basil, pinenuts and icing sugar.

milk ice cream© by Haalo

Milk Ice Cream - If I was only allowed to eat one ice-cream, it would be this one.

mint tea© by Haalo

After those twelve, lucky 13 must be a refreshing beverage and Mint Tea made with gunpowder green tea and fresh mint leaves is the perfect tonic.

Here’s hoping 2009 will be the tastiest yet!

Stock Picks and Trade Ideas for Wednesday - POT , SJI, VLO, CLF

Chart courtesy of www.stockcharts.com ( click to enlarge )

CLF - The stock is facing a period of sideways action while it consolidates the gains booked in the past weeks. The stock will face short to medium term resistance at 30. Once this level is crossed with good volumes, the stock can go to 37.55.
Chart courtesy of www.stockcharts.com ( click to enlarge )

VLO - The stock closed again above the moving averages and is registering a Bullish signal. Let’s see whether the stock can gather enough momentum to break through 21.92. If the Bulls are able to push through this level, there will be another rally towards 23.61.
Chart courtesy of www.stockcharts.com ( click to enlarge )

SJI has a Bullish looking stock chart, price broke out from the horizontal resistance mark around 38.68 share Tuesday on a respectable volume. The stock is displaying upside momentum and is poised to move higher from these levels.
Chart courtesy of www.stockcharts.com ( click to enlarge )
POT - The latest chart and sentiment surrounding Potash Corp. shares appear to be hesitant due to the incredible performance of the stock recently. Investors should look for flat trading in the near-term with a possibility of testing lower prices before moving higher. A close below 69.73 ( 50 dma ) could be a bad sign for stock.
Disclaimer : Trading stocks involves risk, this information should not be viewed as trading recommendations.The charts provided here are not meant for investment purposes and only serve as technical examples.

That’s all Folks.

AC

Retrospective of 2008

It’s time to use this short-break in the markets as a good opportunity to do a retrospective of the previous year, showing you the total of visitors that daily come here, placing the blog in a level of international recognition in the financial blogosphere. To begin, I must tell you that during the year of 2008 have passed by here a total of 142.847 unique visitors ( page views 196.743 ) with an average of 11.903 unique per month ( page views 16.395 ) and 2975 unique per week ( page views 4098 ) . Those visitors came from different parts of the globe, but as is natural most of them from the United States. The readers via feeds also grew at a rate quite high, surpassing even the barrier of 250% compared to 2007. The content published here continues to be just informational and not with the intention to provide an indication of investment, or any other matter. I must always ensure that the trading of my ideas is always subject to possible external news and facts that can interfere with the correct reading of any technical analysis. As usual this is the traditional time for resolutions and makes concrete goals for the next year. I have a few resolutions for the New Year but I’ll focus just in my visitors and blogging. I want to build up to a consistent 20,000 visitors per month. I’m convinced in the potential to get there without foreseeing how. In conclusion, I must say that in general the year was excellent for the blog in all ways. I finish thanking you the confidence you have shown throughout this time and hope that the level of growth continue surprising or remaining at this level, thank you!!!

AC

Stock Picks and Trade Ideas for Tuesday - YHOO, CIEN, SIGM, NVDA

Chart courtesy of www.stockcharts.com ( click to enlarge )
NVDA - Nvidia failed to partake in the rally started in November. This stock formed a rising wedge/flag over the last few weeks and broke trendline support last week. Looks like a trend reversal and a move to 7 level looks inevitable. Shareholders who prefer higher risks may hold with a stop-loss at 7.5.
Chart courtesy of www.stockcharts.com ( click to enlarge )

SIGM - The near-term outlook is bearish and a close above 9 would confirm this view. On the contrary, a close above 9.34 ( 50 dma ) would have bullish implications and would push the stock to the 10-10.28 range. Hold with a stop-loss at 8.81.
Chart courtesy of www.stockcharts.com ( click to enlarge )

Shares of Ciena are coming very near to its horizontal support of 6. Any close below this level will signal the next leg down has begun. Stop yourself out on any close below this level. Technically, the RSI had just broken the Bullish territory and fallen below 50. In addition, MACD histogram is negative while MACD crossed below the faster “trigger” line or the red line.
Chart courtesy of www.stockcharts.com ( click to enlarge )
Yahoo failed to partake in the November advance and looks like and accident waiting to happen. The key level of support on the YHOO is now 11.45, but any close below 11.75 could ignite a move to retest 11 in coming days.

Disclaimer : Trading stocks involves risk, this information should not be viewed as trading recommendations.The charts provided here are not meant for investment purposes and only serve as technical examples.


That’s all Folks. See you tomorrow !!

AC

Opening the veil on 2009

Opening the veil on 2009, it will be recommended to maintain a cautious attitude towards the stock market, especially with regard to investments with shorter horizon 3 to 4 months, as high macroeconomic difficulties and high uncertainty and risk will have an impact on this class of assets. The sentiment towards global equity markets has become more dangerous at this moment, so the situation should continue to be marked by instability. The volatility in the market will therefore remain high for some time. This effect becomes more dangerous in a market with little liquidity as we have seen lately . In recent months, the macroeconomic risks have increased significantly for developed economies and have had a more obvious impact on the results of major companies, many analysts are anticipating a negative growth in first 6 months in these economies. The most important key catalysts of the companies still exist, but I believe that there is still a great distance to go before the market is sufficiently strong to release it.

Pure adrenaline!!

Since long time ago, perhaps since earliest recorded history, man has always the dream to fly. Man has invented interesting inventions and nowadays is possible see some giants of the air crossing the sky. But man is always looking for another ways to fly and this video show that. Check out the video !!! So beautiful !! so cool !!

AC

College funds

Excuse me for a minute but I have to share something that might be useful one day for you. Every year, we parents have to choose the best student credit cards for our children, this happens to me and I’m quite convinced with you too. Everybody knows that getting a student credit card for our child when he goes to colleague living away from home is a better option to provide the money needed. Every time the bills are sent to us, we can even track their spending, something that’s hard to do with cash. As usual the problem of choice is the main discuss between parents and a big concern. So, trying to give some help today I brought to you a place where you can easily compare the different student credit cards available on the market right now, its name is StudentCreditCards.com. They share helpful articles on how to maintain excellent credit, making on time payments, as well as advices on what type of credit cards students need. When you are ready to apply for a credit card, take your time, compare credit card offers, companies and designs and learn the basics of good spending habits and then apply securely online for a student credit card. So, if you have kids in college and want to prepare them to have a credit card, you might find some help at studentcreditcards.com.

Mixed Tomato Salad

The Russians are here!

black russian tomatoes© by Haalo

Black Russian tomatoes that is and I for one, welcome their arrival.

It’s a tomato that I’ve had miserable luck growing. I think in all my attempts I’ve only ever managed to harvest one lone tomato. So when I noticed one of the stallholders at Prahran market had them, they quickly ended up in my shopping basket.

black russian tomatoes© by Haalo

They were soon joined by these adorable red and yellow cherry tomatoes.

red and yellow cherry tomatoes© by Haalo

With a few more ingredients I was able to mimic a tomato salad I’ve been enjoying lately at Church Street Enoteca.

Agostino Recca Anchovies© by Haalo

Luckily I was able to find some of my favourite anchovies - these are by Agostino Recca

Agostino Recca Anchovies© by Haalo

and while they aren’t overpowering, they do have much more flavour then the Entreislas Anchovies I used in the eggplant stacks.

Mixed Tomato Salad with Buffalo Mozzarella and Anchovies© by Haalo


Mixed Tomato Salad with Buffalo Mozzarella and Anchovies

Black Russian Tomatoes
Red and Yellow Cherry Tomatoes
1 buffalo mozzarella - I used Shaw River, ripped into bite sized pieces
Anchovy fillets, sliced finely
Aged Balsamic Vinegar
Extra Virgin Olive Oil
sea salt
snipped chives
basil leaves, ripped

Sliced the Black Russian tomatoes into wedges and cut the cherry tomatoes in half.

Place the tomatoes in a bowl and sprinkle over with the sliced anchovy fillets and snipped chives - toss gently to combine.

In a small bowl, whisk together the balsamic, oil and a pinch of sea salt until amalgamated. Drizzle this over the tomatoes and toss to combine. Finish with a sprinkling of ripped Basil leaves.

To serve, transfer a quarter of the salad into your serving bowl and scatter pieces of mozzarella over the salad, top with another quarter of the salad and some more mozzarella pieces. Repeat until all ingredients have been used.

Drizzle over with the collected juices and finish with a little more ripped basil.