Wednesday, February 27, 2013

Sms Jokes


Ye 1 darawni kahani hai, kamjor dil wale ise na pade!

Barsat ki 1 raat me 1 budha aadmi hath me 1kitab bechne ke liye khda tha,
1 aadmi aaya aur usne vo kitab 3000/- mein kharid li

Budhe aadmi ne kitab de ke kaha:
Jab tk koi musibat na aye kitab ka LAST PAGE mat dekna.

Aadmi ne kitab puri pad li lekin
dar ke karan last page nahi khola.

1 din usse raha nahi gaya
aur last page khol ke dekh hi liya aur sadme se mar gya..

last page par likha tha..
.
.
.
MRP-Rs 15/- only!
...............................................................................................................................

Ek bar engineering ke sabhi Professores ko ek plane mein bithaya gaya..

Fir announce kiya gaya ki
“YE PLANE APKE STUDENTS NE BNAYA HAI”

Sab profesrs utar gaye…
Par principal baithe rahe

Logo ne pucha: Aapko Darr nahi lgta?
Principle: Muje apne studnts par pura bharosa hai.
Ye start hi nahi hoga!! 
...............................................................................................................................

1 gaoon me Raahul Gandhi ko 1 bachche Ne kaha:

Sirji 14 mahino se yaha school me teacher nahi he.
Rahul- To school kaise chal raha he?
Bacha- Jaise desh chal raha hai! :P

.................................................................................................................................

Sonia Gandhi Sms

Sonia ji 1 school visit karne gayi 1 class mein a kar boli bachcho koi sawal puchna hai to pucho.
Pappu bola mere 3 sawal hai:
1) Aap khud prime minister Q nahi bani
2) Ramleela maidan me police kisne bheji
3) Apka kitna paisa Swiss bank mein hai.

Isse pehle ki Sonia ji jawab deti half time ke bell ho gayi.
After half time
Bablu khadha hokar bola Mam mere 5 sawal hai..
3 to Pappu wale hai

4) Half time ki bell 20min phle kaise baji?
aur akhiri sawal?
Q5) Pappu kaha hai?



...........................................................................................................................

Koi 1 din select karo..

Koi 1 din select karo..
Sun
Mon
Tue
Wed
Thu
Fri
Sat

Kar liya…?
.
Reply mat karna..
Bas us din naha liya karo plz
I know sardi kaafi hai.. Par nahana bhi zaruri hai :D


...............................................................................................................................

Ladkiyo ki 5 baatain kabhi samjh nahi aati

1) Tum na bohat woh ho
(pata nahi woh se kya matlab hai? banda soch main per jaata hai)

2) Mujhe tum se ye umeed nahi thi.
(to phir kya umeed thi)

3) Tum pehle jaise nahi rahe.
(to phir main pehle kesa tha?)

4) Sach batana, main kaisi lag rahi hun.
(sach Bol kar pitna thori hay)

5) Im very selfish na.
(ab haan bol doon to gayi bhens pani mein)



.........................................................................................................................






Funny Story


एक बार रेलवे स्टेशन पर एक वृद्ध बैठे रेल का इंतजार कर रहे थे। वहाँ एक नवयुवक ने उन वृद्ध से पूछा- अंकल, समय क्या हुआ है?
वृद्ध– मुझे नहीं मालूम !
युवक– लेकिन आपके हाथ में घड़ी तो है, प्लीज बता दीजिए न कितने बजे हैं?
वृद्ध सज्जन– मैं नहीं बताऊँगा।
युवक– पर क्यों?

वृद्ध– क्योंकि अगर मैं तुम्हें समय बता दूँगा तो तुम मुझे थैंक्यू बोलोगे और अपना नाम बताओगे, फिर तुम मेरा नाम, काम आदि पूछोगे। फिर संभव है हम लोग आपस में और भी बातचीत करने लगें। हम दोनों में जान-पहचान हो जायेगी तो हो सकता है कि ट्रेन आने पर तुम मेरी बगल वाली सीट पर ही बैठ जाओ। फिर हो सकता है कि तुम भी उसी स्टेशन पर उतरो जहाँ मुझे उतरना है। वहाँ मेरी बेटी, जोकि बहुत सुन्दर है, मुझे लेने स्टेशन आयेगी। तुम मेरे साथ ही होगे तो निश्चित ही उसे देखोगे, वह भी तुम्हें देखेगी। हो सकता है तुम दोनों एक दूसरे को दिल दे बैठो और शादी करने की जिद करने लगो। इसलिए भाई, मुझे माफ करो ! मैं ऐसा कंगाल दामाद नहीं चाहता जिसके पास समय देखने के लिए अपनी घड़ी तक नहीं ....................................................................................................................................

एक बंदूकधारी घुड़सवार अपनी यात्रा के दौरान एक जगह चाय पीने के लिये रुका। उसने अपना घोड़ा चाय के होटल के पास एक पेड़ से बांध दिया और अंदर चाय पीने चला गया। जब वह लौटा तो पाया कि उसका घोड़ा जगह पर नहीं है। किसी ने उसे चुरा लिया था।
घुडसवार ने बंदूक से एक हवाई फायर दागा और चिल्ला चिल्ला कर कहने लगा – ”जिसने भी मेरा घोड़ा चुराया है वो सुन ले! मैं एक चाय और पीने अंदर जा रहा हूं। इस बीच अगर मेरा घोड़ा वापस जगह पर नहीं मिला तो याद रखना ….। इस जगह वही हाल करूंगा जो घोड़ा चोरी होने पर मैंने जयपुर में किया था!”
चाय पीकर जब वह लौटा तो उसका घोड़ा अपनी जगह पर वापस बंधा था। वह उसपर सवार होकर चलने लगा तभी होटलवाले ने आवाज देकर उसे रोका – ”भाई, जरा वो किस्सा तो सुनाते जाओ । जयपुर में आखिर आपने क्या किया था ?”

”करना क्या था! वहां से पैदल ही चला गया था!” 
                  ....................................................................................................................................

स्टेशन पे एक कुली से बाहर जाने का रास्ता पूंछा .
कुली ने कहा: " बाहर जाके पूंछो ."

मैंने ख़ुद ही
रास्ता ढूंढ़ लिया ,
बाहर जाके टैक्सी वाले से पूंछा :
" भाई साहब लाल किले का कितना लोगे ?"
जवाब मिला: " बेचना नही है ."

टैक्सी छोड़ , मैंने बस पकड़ ली ,
कंडक्टर से पूंछा: "जी , क्या मैं सिगरेट पी सकता हूँ ?"
वो गुर्र्रा कर बोला : "हरगिज़ नही , यहाँ सिगरेट पीना मन है."
मैंने कहा: "पर वो जनाब तो पी रहे है!"
फिर से गुर्र्र्राया : "उसने मुझसे पूंछा नही है."

लाल किले पंहुचा , होटल गया .
मेनेजर से कहा: "मुझे रूम चाहिए , सातवी मंजिल पे ."
मेनेजर ने कहा: "रहने के लिए या कूदने के लिए ?"
रूम पंहुचा , वेटर से कहा:
" एक पानी का गिलास मिलेगा ?"
उसने जवाब दिया: "नही साहब , यहाँ तो सारे कांच के मिलते हैं."

होटल से निकला , दोस्त के घर जाने के लिए ,
रास्ते में एक साहब से पूंछा:
" जनाब , ये सड़क कहाँ को जाती है ?"
जनाब हंस कर बोले: "पिछले बीस साल से देख रहा हूँ , यही पड़ी है... 
                ....................................................................................................................................

एक चीता Cigarette का सुट्टा लगाने ही वाला था की अचानक एक चूहा वहां आया और बोला :

" मेरे भाई छोड़ दो नशा , आओ मेरे साथ भागो देखो ये जंगल कितना खुबसूरत है , आओ मेरे साथ दुनिया देखो "
चीते ने एक लम्हा सोचा फिर चूहे के साथ दौड़ने लगा .

आगे एक हाथी अफीम पी रहा था , चूहा फिर बोला ,
" हाथी मेरे भाई छोड़ दो नशा , आओ मेरे साथ भागो , देखो ये जंगल कितना खुबसूरत है , आओ मेरे साथ दुनिया देखो "
हाथी भी साथ दौड़ने लगा .

आगे शेर whisky पीने की तैयारी कर रहा था , चूहे ने उसे भी वही कहा .
शेर ने ग्लास साइड पर रखा और चूहे को 5- 6 थप्पड़ मारे .

हाथी बोला , " अरे ये तो तुम्हे ज़िन्दगी की तरफ ले जा रहा है , क्यों मार रहे हो इस बेचारे को ?"
शेर बोला , " यह कमीना पिछली बार भी Bhang पी कर मुझे 3 घंटे जंगल मै घुमाता रहा " 

                 ....................................................................................................................................

A Pure CSS3 Cycling Slideshow


Thanks to CSS3, we can create effects and animations without using JavaScript, which will facilitate the work of many designers.
But we must be careful to avoid abusing CSS3, not only because old browsers do not support all of its properties. In any case, we all see the potential of CSS3, and in this article we’ll discuss how to create an infinitely looping slider of images using only CSS3 animation.

Sections of This Article

To get a solid sense of the process from beginning to end, below is an outline of the article. Please note that this effect will only work properly in modern browsers that support the CSS3 properties being used.


At the moment, CSS3 transitions are supported in Safari 3.2+, Chrome, Firefox 4+, Opera 10.5+ and IE 10. Because the technology is still relatively new, prefixes for browsers are required. So far, the syntax is exactly the same for each browser, with only a prefix change required. We will omit them in the snippets in this article, but please remember to include the prefixes in your code.
Let’s see how to apply a simple transition to a link:
a {
   color: #000;
   transition-property: color;
   transition-duration: 0.7s;
   transition-timing-function: ease-in;
   transition-delay: 0.3s;
}

a:hover {
   color: #fff;
}
When assigning an animation to an element, you can also use the shorthand:
a  { 
   color: #000;
   transition: color 0.7s ease-in 0.3s;
}

a:hover {
   color: #fff;
}


Basic Concepts of CSS3 Animations

CSS animation enables us to create animations without JavaScript by using a set of keyframes. Unlike CSS transitions, keyframe animations are currently supported only in Webkit browsers and Firefox and soon in IE 10. Unsupported browsers will simply ignore your animation code. The animation property has eight subproperties:
  1. animation-delay Defines when the animation starts.
  2. animation-direction Sets the animation to play in reverse on alternate cycles.
  3. animation-duration Defines the length of time an animation takes to complete one cycle.
  4. animation-iteration-count Defines the number of times an animation cycle should play before stopping.
  5. animation-name Specifies the name of the @keyframes rule.
  6. animation-play-state Determines whether an animation is running or paused.
  7. animation-timing-function Describes how an animation progresses over one cycle.
  8. animation-fill-mode Specifies how a CSS animation should apply styles to its target before and after executing.
Let’s see how to apply a simple animation to a div.
/* This is the element we are applying the animation to. */

div {
   animation-name: move;
   animation-duration: 1s;
   animation-timing-function: ease-in-out; 
   animation-delay: 0.5s;           
   animation-iteration-count: 2;  
   animation-direction: alternate;

   -moz-animation-name: move;
   -moz-animation-duration: 1s;
   -moz-animation-timing-function: ease-in-out; 
   -moz-animation-delay: 0.5s;           
   -moz-animation-iteration-count: 2;  
   -moz-animation-direction: alternate;

   -webkit-animation-name: move;
   -webkit-animation-duration: 1s;
   -webkit-animation-timing-function: ease-in-out; 
   -webkit-animation-delay: 0.5s;           
   -webkit-animation-iteration-count: 2;  
   -webkit-animation-direction: alternate;
}

/* This is the animation code. */

@keyframes move {
   from { 
      transform: translateX(0); 
   }
   to { 
      transform: translateX(100px);
   }
}

@-moz-keyframes move {
   from { 
      -moz-transform: translateX(0); 
   }
   to { 
      -moz-transform: translateX(100px);
   }
}

@-webkit-keyframes move {
   from { 
      -webkit-transform: translateX(0); 
   }
   to { 
      -webkit-transform: translateX(100px);
   }
}
But we can use the shorthand property to conveniently set all of the animation properties at once.
div { 
   animation: move 1s ease-in-out 0.5s 2 alternate; 
   -moz-animation: move 1s ease-in-out 0.5s 2 alternate; 
   -webkit-animation: move 1s ease-in-out 0.5s 2 alternate; 
}

Keyframes

Each keyframe describes how an animated element should render at a given point in the animation sequence. The keyframes take a percentage value to specify time: 0% is the start of the animation, while 100% is the end. You can optionally add keyframes for intermediate animations.
/* Animation from 0% to 100% */

@keyframes move {
   0% { transform: translateX(0); }
   100% { transform: translateX(100px); }
} 

/* Animation with intermediate keyframes */

@keyframes move {
   0% { transform: translateX(0); }
   50% { transform: translateX(20px); } 
   100% { transform: translateX(100px); }
}





Sunday, February 24, 2013

Latest Jokes


Dur nahi dikhta

Bania’s son: Daddy meri door ki nazar kharab hai SPECKS banwa do.
Kanjoos Bania took him outside & said: Woh dekh kya hai?


Son: Suraj
Kanjoos Bania: Abbe ullu ke patthe, aur kitni dur tak dekhna chahe hai tu
....................................................................................................................

Murgha boyfriend

Ek larka apni girlfriend se milne gaya, kuch baat ke baad uski girlfirend chaye(tea) banane ke liye kitchen chali gayi.

Girlfriend ka mobile sofay pe dekh kar larky ne socha ke chalo dekhte hai mera number iss ne kis naam se save kya hai?


Dear, sweetu ya jaanu.
Jab usne misscall di toh screen pe likh raha tha “Murgha No.5? Calling”.
....................................................................................................................

Gabbar ka khauf…

Maa apne bete se kehti: Beta so ja warna gabbar aa jayega.

Beta apni maa se kehta: Maa mujhe Chocolate do varna papa se keh dunga ke mere sone ke bad roz gabbar aata hai.
..................................................................................................................................

Chokidaar..


Officer: Dekho, humme aisa chaukidaar chahiye jo sehatmand ho, chust, chalak aur chaukanna ho, jarurat parne par jisse hum daat bhi saake…



Yadi tumhare andar yeh saare guun shamil hai to tumhe yeh naukri mil sakti hai.
Umeedwaar : Saheb yeh saare gun meri biwi mein hai, usse bulau?
......................................................................................................................

Bada kab ho jaunga

Beta papa se: Papa main itna bada kab ho jaunga ki mummy se bina poochey ghar se bahar ja sakoo.


Papa thandi saans lete hue: Beta, itna bada toh abhi main bhi nahi hua hoon.
....................................................................................................................

Plastic surgery

Ek aadmi bada dukhi tha!
Ek dost ne uss se poocha, “Kyu, tension mein ho.”


Aadmi: Yaar ek dost ko plastic surgery ke liye 2 lakh rupeey diye thay, ab saale ko peehchan nahi pa raha hoon.
....................................................................................................................

Not in duty

Ek police Inspector ke ghar chori ho rahi thi.
Wife: Utho ji, ghar mein chori ho rahi hai.


Police Inspector: Mujhe sone de, main iss time duty par nahi hoon.
...........................................................................................................................................

Dhamkiya mil rahi hai

Customer: Mujhe phone per dhamkiya mill rahi hai.


Police: Kaun hai woh jo aapko dhamkiya de raha hai?

Customer:
Telephone wale bolte hai ke, “Bill nahi bharoge toh kaat denge.”
...........................................................................................................................................

Ajit & robert in cricket match

Ajit is watching cricket match of India vs.Pakistan. Kapil is bowling and Imran is batting. Pakistan needs 18 runs in 3 balls.
Ajit : Rabert Kapil se kehna ek khatarnak Beemer daalde aur Imran ko out karde.
Rabert : Ok boss Robert goes to Kapil and tells the message.
Kapil nods and bowls but Imran hits it for a six!



Ajit : Rabert ab Kapil se kehna ek khatarnak Yorker daalde aur Imran kaa kaam tamam karde.
...........................................................................................................................................

Kabristan

Mohan & Sohan were sitting in a kabristan & were talking.
Mohan: Sohan, dekho yeh murde kitne aaraam se apni kabron mein sote hai.


Sare murde uth khare hue aur bole: Kyun na soye, yeh jaga apni jaan de ke hasil kee hai..!



Funny Jokes


Bolaa dukaan-daar, ke kyaa chahiye tumhain
Jo bhii kaho ge merii dukaan per wo paoge
maine kahaa ke kutte ke khaane kaa cake hai
bolaa yahiin pe khaaoge yaa leke jaaoge…

..........................................................................................................................................

choohe paid pe baithe the, 
neeche se 1 hathi guzra,
1 chooha hathi pe ja gira 
dosra chooha bola - daba ke rakh saale ko me baata hu.

.........................................................................................................................................

Ek baar ek terrorist ne ek budhiya ke ghar me bomb rakh diya.
Log chillaye – Budhiya bomb hai, Budhiya bomb hai.
Budhiya sarmakar boli : Dhatt teri, wo to mein jawani me thi!!!

..........................................................................................................................................


Husband : Jab mein aache clothes pehenkar bazaar jata hu to sabziwale
sabzi mehngi dete hai. Jab gande kapde pehenkar jata hu to saste.
Wife : Tum katora lekar jaya karo na, free me hi sabzi mil jayegi!

..........................................................................................................................................

Santa to Autodriver : Gurudware Jaoge?
Driver : Haan bilkul jaunga?
Santa ne jeb se polythin nikala aur bola : Wapas aana to mere
liye langar le aana!

..........................................................................................................................................


Pati aur patni ghumne gaye. Raaste me ek gadhe ko ghaas kata
dekh patni ne pati se kaha – Oo G tumhara rishtedaar ghaas
kha raha hai, namaste karo.
Pati – Namaste Sasur Ji


........................................................................................................................................

Sardarni : Lo light chali gayi.
Sardar : Light chali gayi hai to fan chala do.
Sardarni :Lo fir se kar di na sardaro wali baat.
Agar fan chalaunga to mombatti bujh nahi jayegi!

..........................................................................................................................................

Sardar to doctor: Jab mein sota hu to mere sapne me Live IPL Cricket match ane lagta hai.
Doctor: Koi baat nahi ye medicine sone se pehle kha lena.
Sardar: Kal se khaonga, aaj to final match hai!!!

........................................................................................................................................


Ek sarder ne air-hostess se kaha, “Aapki shakal meri biwi
se bahut milti hai”.
Air-hostess ne ye sunte hi zordaar thappad uske muh pe mara…
Sardar foran bola : “Aadat bhi bahut milti hai”

...........................................................................................................................................

Ek din Santa jungle se gujar raha tha
Chudail ne use roka aur kaha : Ho ho ho Ha ha ha…Mein Chudail hu.
Sardar : Menu pata hai…kyunki teri ek behen meri biwi hai!


........................................................................................................................................




Saturday, February 16, 2013

Amazing Fact

 Butterflies cannot fly if their body temperature is less than 86 degrees.
..........................................................................................................................................
Neurons multiply at a rate 250,000 neurons per minute during early pregnancy.
..........................................................................................................................................
Elephants have the longest pregnancy in the animal kingdom at 22 months. The longest human pregnancy on record is 17 months, 11 days.
..........................................................................................................................................
A female oyster produces 100 million young in her lifetime, the typical hen lays 19 dozen eggs a year, and it is possible for one female cat to be responsible for the birth of 20,736 kittens in four years. Michelle Druggar holds the record for largest human family, having given birth to 17 children.
...........................................................................................................................................
750 ml of blood pumps through your brain every minute which is 15-20% of blood flow from the heart.
..........................................................................................................................................
Dragonflies are capable of flying sixty miles per hour, making them one of the fastest insects. This is good since they are in a big hurry, as they only live about twenty-four hours.
...........................................................................................................................................
Flies jump backwards during takeoff.
..........................................................................................................................................
A housefly will regurgitate its food and eat it again.
.........................................................................................................................................
Termites outweigh humans by almost ten to one.
.........................................................................................................................................
A spider's web is not a home, but rather a trap for its food. They are as individual as snowflakes, with no two ever being the same. Some tropical spiders have built webs over eighteen feet across.
........................................................................................................................................
More people are afraid of spiders than death. Amazingly, few people are afraid of Champagne corks even though you are more likely to be killed by one than by a spider.
.......................................................................................................................................
Your brain consumes 25 watts of power while you’re awake. This amount of energy is enough to illuminate a light bulb.
.......................................................................................................................................
Possums have one of the shortest pregnancies at 16 days. The shortest human pregnancy to produce a healthy baby was 22 weeks, 6 days -- the baby was the length of a ballpoint pen.
........................................................................................................................................
Wearing headphones for just an hour will increase the bacteria in your ear by 700 times.
.......................................................................................................................................
The most poisonous spider is the black widow. Its venom is more potent than a rattlesnake's.
........................................................................................................................................
13% of Americans actually believe that some parts of the moon are made of cheese.
........................................................................................................................................
The world's youngest parents were 8 and 9 and lived in China in 1910.
........................................................................................................................................
Fish that live more than 800 meters below the ocean surface don't have eyes.
.......................................................................................................................................
Butterflies range in size from a tiny 1/8 inch to a huge almost 12 inches.
.......................................................................................................................................
Some Case Moth caterpillars (Psychidae) build a case around themselves that they always carry with them. It is made of silk and pieces of plants or soil.
......................................................................................................................................
One in eight million people has progeria, a disease that causes people to grow faster than they age.
......................................................................................................................................
Bulls don't really get angry when they see the color red, it's really movement that makes them charge.
........................................................................................................................................
Bayer was advertising cough medicine containing heroin in 1898.
........................................................................................................................................
An average human drinks about 16, 000 gallons of water in a lifetime.
.......................................................................................................................................
As much as 80% of microwaves from mobile phones are absorbed by YOUR HEAD! visit microshield.
.......................................................................................................................................
1 kg (2.2 pounds) of lemons contain more sugar than 1 kg of strawberries.
......................................................................................................................................
1959's A Raisin in the Sun was the first play by a black woman to be produced on Broadway.
......................................................................................................................................
A 1.5 oz. milk chocolate bar has only 220 calories. A 1.75 oz. serving of potato chips has 230 calories.
.......................................................................................................................................
A honey bee must tap two million flowers to make one pound of honey.
......................................................................................................................................
A quarter of the horses in the US died of a vast virus epidemic in 1872.
......................................................................................................................................


Sunday, February 10, 2013

Misdirection and our eyes on transitions

Our brains play a lot of helpful tricks on us. For example, when we see a number of objects in motion, we tend to project that motion onto other nearby objects as well. In animation theory this is referred to as misdirection. We see the additional motion because it is suggested by other motion happening around it, not because it actually happened. Tricky!

So why care about this misdirection stuff? Because it can save us some work while making things look a bit more interesting. We can write  fewer transitions and make it look like there's more than that going on than there really is. Not a bad deal, really. Also, it's nice to mix things up. Applying the same transition verbatim to all the elements we're working with gets boring really fast.


Our starting point

Let's build a little something to show what I'm talking about. And let's make sure it includes kittens.

Our example is a list of items that we'd like to dress up with some transitions. It's a common type of content to be dealing with, but our list happens to be a list of tiny pets which may be a little less common. Each item in the list has a photo, title and short caption. Combined they'll, transition on :hover to change colour and scale up the image just slightly, like so:http://www.netmagazine.com/files/tutorials/demos/2012/06/more-efficient-css3-transitions/demo/demo.html.

We'll start with each looking like this:


Let's get transitioning!

  1.         .pet {
  2.                 width:200px;
  3.                 padding:2em 1em 1em 1em;               
  4.                 text-align: center;    
  5.                
  6.                 -webkit-transition: all 300ms ease-out;
  7.                    -moz-transition: all 300ms ease-out;
  8.                     -ms-transition: all 300ms ease-out;
  9.                      -o-transition: all 300ms ease-out;
  10.                         transition: all 300ms ease-out;
  11.         }
  12.                
  13.         .pet img {
  14.                 margin:auto;
  15.                 display:block;         
  16.                
  17.                 -webkit-transform: scale(.9);
  18.                    -moz-transform: scale(.9);
  19.                     -ms-transform: scale(.9);
  20.                      -o-transform: scale(.9));         
  21.                         transform: scale(.9);
  22.        
  23.                 -webkit-transition: all 400ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  24.                    -moz-transition: all 400ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  25.                     -ms-transition: all 400ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  26.                      -o-transition: all 400ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  27.                         transition: all 400ms cubic-bezier(0.250, 0.460, 0.450, 0.940); /* easeOutQuad */
  28.                         }

The :hover state

Shortly after that, just like you'd expect, we'll define what should happen on :hover in our CSS like so:

  1.         .pet:hover {
  2.                 background-color:white;
  3.                 background-color: rgba(200,200,200,.3);
  4.                 -webkit-border-radius: 10px;
  5.                 border-radius: 10px;           
  6.                 cursor: pointer;
  7.         }
  8.        
  9.         .pet:hover img {
  10.                 -moz-transform: scale(1);
  11.                 -webkit-transform: scale(1);
  12.                 -o-transform: scale(1));
  13.                 -ms-transform: scale(1);
  14.                 transform: scale(1);
  15.         }                              
  16.         .pet:hover h2 {
  17.                 color:#c9a833;         
  18.         }
We've only defined transitions for two of our elements, but as you can see above, we're changing properties for three of them on :hover. When you first viewed the demo, you probably noticed the colour change on each item's title in addition to the background colour and image scaling. However, you might not have noticed that there was no actual CSS transition applied to it.

With the soft transition of the background colour behind it and the image scaling above it, your eyes want to see that the text transitioned smoothly as well even though it was really just a hard cut to the new colour. In this situation it appears to move with the group to its hover state.

Of course, now that I've called your attention to it, or if your eagle eyes inferred a bit from the article's title, you were looking for it and the effect is lessened. But to the casual viewer, there's no difference, and you've just written one less transition than appears to be there. Not to mention made the overall motion of the group more varied and interesting.

And the moral of our story

When you mix elements that have a true transitions defined and those that just change with a hard cut to their new state you can get more interesting effects with fewer transitions written out. It's more of an art than a science, but we can pretty easily create situations where what appears to be going on visually is much more complicated than what we've actually coded behind the scenes.