Web Design Tips, Tutorials & More!

Wonder Of Using J Query Animation In Your Web Page

There are many uses for jQuery. Using this for creating your drop down menu for connecting to various social Apps like Face book and Twitter is one which holds a lot of appeal. This works with an Icon finder but one may use it for any application which requires a drop down list.

Start with your language

You may use HTML 4.01 or XHTML for scripting your page. The appropriate headers such as “DOCTYPE html”, and “html lang= “en” ” are enclosed within the < at the beginning and closed with the > at the end. This way you should include your import statement for your style sheets in CSS also.
Once you have done with the headers you should know how to label of your areas using the HTML5 sections. Using either an ordered or an unordered list you may create a drop down menu and use suitable titles for ready recognition.
If you are using the <ul>
<li class= “gitem”>< ahref= “a”>
will produce items in the internal list having class .gitem. This obviously will apply only to the root items and the sub-menu nav. will not be affected. Use jQuery to hide the items in the list by naming them first under as class .bsubclass. The CSS styles are used for positioning. You may also use them to cause a fade out or hover.

Working The Web Fonts

This is simple when you are familiar with CSS. Let us see how to include the web font system from Google.

First choose the font you wish to include in your page.

Make sure to include the CSS style sheet also on the page.

Now you may use the font names in the properties.

You are free to use as many fonts that you may wish to include.

h2 {font-family:  ‘Arial’, cursive, Lucida, sans-serif; font-size:  3.2 em; color: #456; text-transform: bold; line-height:  2.0em ;}
By adding Arial as the primary choice of font style, we are not limiting our self. The second or the thirds choices would work if the primary does not work.

FINDING HOW THE SLIDING NAV. WORKS WITH CSS

We include the code #slidenav {margin-bottom: 10px ;}
We choose our font family just like above
#slidenav li {font-family: Verdana, sans Lucida, serif; font-size:  2.0 em; font-weight: normal; margin-bottom: 2px ;}

Now the code for the function is written

slidenav li c {display: block; text decoration: normal; padding: 3px 8 px; color: # abcdef; line-height: 35 px ;}
slidenav li c: hover {background: #fedbca; color: #AB1234 ;}
now see the following:

#slidenav .bsubclass {padding: 10; color: #456 ;}
#slidenav .bsubclass {color: #23A45B; line-height: 2.2 em; text-decoration: bold ;}

These .bsubclass may be appended to any of the links in the sub-list to change the property of the font. You may also use the hover function in the subclass .bsubclass

#slidenav .bsubclass li d {color: #343434; line-height: 2.2 em}
#slidenav .bsubclass li d {text-decoration: none; color: #456 ;}

Making it work

jQuery works so long as you place these scripts before the closing </body> tag. Then the code will load together with the page.
One should call the document using the ‘ready () status’ placed after $(document).
This is your opening statement $(docu).ready (function) () {
$(‘.bsubclass’). hide (); // this will hide the item
This is the way you will be able to work your magic with the jQuery. You may navigate to the sublists by using the function
Parent () next (‘.bsubclass’)

In conclusion

If you feel the power of this style of coding, please make it a point to work out some of this on your own. It will make a big difference to your web page.

 

Thumbnail

One Response to “Wonder Of Using J Query Animation In Your Web Page”
  1. Legendfx

    It is very important to know a bit of the programming language to become a good designer.Therefore these discussions are of immense help to us beginners.

Leave a Reply