Friday, August 29, 2014

Simple image hover effect using CSS

Today we learn some simple CSS Image Hover Effects. we created some simple examples that will work in all browsers. Its very short and sweet tutorial so you can understand it even if you never touched CSS before.



For Image hover effect we use CSS :hover Selector. The :hover selector is used to select elements when you mouse over them. we learn below four Image Hover Effects in this tutorial :


In this example we have :hover using height and width to change the size of the image, by adding transition: all 1s ease; to img we make that change from bigger- to smaller look smooth, changing the 1s to 1,1s will make the transition last longer and setting it to 0,9s will make it last shorter.

Enlarge Image on hover : In this example we change the size of image to bigger from smaller. To achieved this we add transform:scale(1.1); on img:hover, we can make it smooth by adding transition: all 1s ease; to img

Facebook Twitter Google Google 

HTML
in this we created two classes enlarge & normal now we write css for each class. normal class is for normal sate of image & when you keep mouse over image the code inside enlarge class will run.

CSS

Note : webkit & moz are CSS browser prefixes we need to add the prefix below for each browser
 Android: -webkit-
 Chrome: -webkit-
 Firefox: -moz-
 Internet Explorer: -ms-
 iOS: -webkit-
 Opera: -o-
 Safari: -webkit-

function scale() change image size. in this we increase size by 0.1 ( actual size is 1.0)

Shrink Image on hover : In this example we just Shrink image on hover by adding transform:scale(0.8); it reduce image size by 0.2

Facebook Twitter Google Google 

HTML :
we are using same HTML code just add new class shrink

CSS :

Rotate Image on hover : in this example we use transition again on hover but instead of scale we use rotate(360deg); which rotate image by 360 degree

Facebook Twitter Google Google 

HTML :
CSS :

Tilt Image on hover : In this example instead rotate image by 360 degree we changed it to 15 degrees so it just tilts a little bit.

Facebook Twitter Google Google 

HTML :
CSS :

Thursday, August 7, 2014

Rich Snippets Tutorial for beginners

Good content is good for great SEO but content need to be understand by search engine, not just by people.search engines can't  understand Text based content , they just match it with search queries. But here is solution which make your content more readable not only for humans but also for search engines. The solution is 'Rich snippets' and here's we understand how to use it.

There are a few formats you can use for your rich snippets :

Microformats : the oldest and the simplest of the three.

RDFa : This one is based on W3C's RDF data model

Microdata : This is Ian Hickson's counter-proposal to RDFa. In spirit, it is an extensible version of microformats.

My recommendation would be to go with microdata and forget that the other two exist.all search engines prefer 'microdata'.

How to mark up your content using microdata

1 . itemscope and itemtype

Imagine you have a page about the movie Avatar, Your HTML code might look something like this:

code :
By adding itemscope, you are specifying that the HTML contained in the <div>...</div> block is about a particular item.

code :

You can specify the type of item using the itemtype attribute immediately after the itemscope.

code :

This specifies that the item contained in the div is in fact a Movie, as defined in the schema.org type hierarchy. Item types are provided as URLs, in this case http://schema.org/Movie.



2. itemprop

To provaide additional information such as actors, director, ratings we use the itemprop attribute

code :

Note : additional <span>...</span> tags added

3. Embedded items

In Some cases the value of an item property can itself be another item with its own set of properties. In our example director of the movie is an item of type Person and the Person has the properties name and birthDate. To specify that the value of a property is another item, we begin a new itemscope immediately after the corresponding itemprop.

code :

Friday, July 11, 2014

why DuckDuckGo is awesome

Privacy is major concern on internet. Some online companies are collecting information about us, and use its for their commercial purpose or they sell this information to others. NSA’s PRISM program allows the United States government to collect information about users of Microsoft, Yahoo, Apple, AOL and Google products without the user ever knowing that they were under surveillance.

If the NSA’s PRISM program has a user concerned, then DuckDuckGo is the Solution.


DuckDuckGo offers some really useful search features:

Privacy :  If your biggest concern is Privacy, then DuckDuckGo is best for you. DuckDuckGo is the search engine that doesn't track you.



No Ads If You Want : From Settings -> Layout you can disable ads if you want.



Images & Videos : Images and Videos are always available. View them without leaving the page. For example, search for your favourite music band , and click on "Audio" tab, you’ll get results from SoundCloud right there. You can even play a song without ever leaving the page. same goes for video But if you playing a YouTube video on the search page, Google will track this playback and there's nothing DDG can do to stop it.




Looks : You can switch to a dark mode from the sidebar. For more, go to Settings -> Look & Feel to change the font size, width, the link and text font itself or turn on underlined links.



Find Places : A better place to start your search for restaurants, or anywhere else you might decide to go.



More Meanings : When searching ambiguous terms, getting the meaning you want can be difficult. Not anymore.



Smarter Answers : Answers to your questions from the best sources, developed by our open source community. You can try  it for a definition of a word, calculating a tip, or solve a complicated equation.



Recipe Search : Introducing recipe search on DuckDuckGo. A great place to start your next meal.



Weather : This week's forecast may not look so good, but instant answer makes it a little better.







Thursday, July 10, 2014

Online Privacy and Evil Side of Google

Most of us use Search Engines to find what we need on internet but do you know Search Engines can track each one of your searches , record your IP address , keyword you use for search , time , your location and other information. If you don't believe me read your search engine's privacy policy.

Read Google privacy policy

Major search engines delete our IP addresses and anonymize personal data according to the following schedule:
Google makes money by selling ads. Google AdWords is an online advertising service and Google's main source of revenue. And it is always try to make more money by selling better ads to advertisers. to accomplish this google uses all our personal data that it can get to personalize those results.Personal data means Everything you do on the internet your searches, clicks, page views, your IP, yor internet provider, the ads you’ve been served, the time of day.Average of 64 cookies install by MSN and Yahoo in order to obtain information about the user online behavior.
Evil Side of Google

NSA’s PRISM program allows the United States government to collect information about users of Microsoft, Yahoo, Apple, AOL and Google products without the user ever knowing that they were under surveillance

ALTERNATIVE SEARCH ENGINES

Try one of these alternative search engines to enjoy web without being tracked.

DuckDuckGo.com

DuckDuckGo is a good search engine for the privacy conscious. DuckDuckGo says, they does not collect or share any personal information. DuckDuckGo discards user agents and IP addresses from its server logs.DuckDuckGo doesn’t use cookies to identify you.