Step 9: In this step you will see the body code of the Default2.aspx page which is given below.
<a class="link icon_mail"></a>
<div class="item_content">
<a href="#">Mahesh Chand</a> <a href="#">Akshay Teotia</a>
<a class="link icon_help"></a>
<div class="item_content">
<a href="http://www.c-sharpcorner.com/Consulting/">Why Us</a>
<a class="link icon_find"></a>
<div class="item_content">
<input type="text"></input>
<a class="link icon_home"></a>
<div class="item_content">
<a href="http://www.tympanus.net/">Start</a>
<script type="text/javascript">
var t = setInterval(function () {
$('.link', $elem).stop().animate({ rotate: '+=-40deg' }, 0);
$elem.stop().animate({ width: '268px' }, 1000)
.find('.item_content').fadeIn(400, function () {
$(this).find('p').stop(true, true).fadeIn(600);
function collapse($elem) {
var t = setInterval(function () {
$('.link', $elem).stop().animate({ rotate: '+=40deg' }, 0);
$elem.stop().animate({ width: '52px' }, 1000)
.find('.item_content').stop(true, true).fadeOut().find('p').stop(true, true).fadeOut();
Step 10: In this step we will see the complete code of the Default2.aspx page which is given below.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="RoundedMenu.Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>Rounded Menu Using jQuery</title>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-animate-css-rotate-scale.js" type="text/javascript"></script>
<script src="Scripts/jquery-css-transform.js" type="text/javascript"></script>
<link href="Styles/style.css" rel="stylesheet" type="text/css" />
<a class="link icon_mail"></a>
<div class="item_content">
<a href="#">Mahesh Chand</a> <a href="#">Akshay Teotia</a>
<a class="link icon_help"></a>
<div class="item_content">
<a href="http://www.c-sharpcorner.com/Consulting/">Why Us</a>
<a class="link icon_find"></a>
<div class="item_content">
<input type="text"></input>
<a class="link icon_home"></a>
<div class="item_content">
<a href="http://www.tympanus.net/">Start</a>
<script type="text/javascript">
var t = setInterval(function () {
$('.link', $elem).stop().animate({ rotate: '+=-40deg' }, 0);
$elem.stop().animate({ width: '268px' }, 1000)
.find('.item_content').fadeIn(400, function () {
$(this).find('p').stop(true, true).fadeIn(600);
function collapse($elem) {
var t = setInterval(function () {
$('.link', $elem).stop().animate({ rotate: '+=40deg' }, 0);
$elem.stop().animate({ width: '52px' }, 1000)
.find('.item_content').stop(true, true).fadeOut().find('p').stop(true, true).fadeOut();
Step 11: In this step we will see the design of the Default2.aspx page which is given below.
Step 12: In this step we are going to run the Default2.aspx page by pressing F5.
Now to see the rounding and expanding effect, click on the small icon.