Profile Design using jQuery Animation and CSS
Profile Design using jQuery Animation and CSS
Description: Hi Every one, Today we are going to see Profile Design using jQuery Animation and CSS. Now a days web technologies growing faster than ever and every body creating their own web site for their profiles and sharing their experience. Every one looking for a beautiful profile design to present their skill sets so here i have created a very simple animated profile design using jQuery animation and css.
1) Download the ProjectFiles
Download
CSS:
[css]
.wrapper{
font-family: Verdana;
font-size:11px;
width:600px;
height:600px;
position:relative;
top:150px;
left:200px;
}
.images img{
display:none;
position:absolute;
left:6px;
top:6px;
}
.circleBig{
position:absolute;
top:0px;
left:0px;
width:418px;
height:418px;
background:transparent url(../images/circlebg.png) no-repeat top left;
}
.menu{
position:absolute;
width:101px;
height:74px;
top:240px;
left:260px;
z-index:999;
}
a.about, a.portfolio, a.contact,a.tutorials{
float:left;
clear:both;
height:23px;
margin-bottom:10px;
width:105px;
text-indent:-2000000px;
opacity:0.8;
background:transparent url(../images/menu-1.png) no-repeat top left;
}
a.portfolio, a.tutorials{
width:90px;
background-position:-105px 0px;
}
a.contact{
width:88px;
background-position:-199px 0px;
}
a.about:hover, a.portfolio:hover, a.contact:hover, a.tutorials:hover{
opacity:1.0;
}
.circle{
margin-top:-88px;
margin-left:-88px;
width:176px;
height:176px;
position:absolute;
left:0;
top:0;
background:transparent url(../images/circle.png) no-repeat top left;
z-index:10;
opacity:0;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}
.description{
width:120px;
margin:40px auto;
text-align:center;
}
.description ul{
list-style:none;
text-align:center;
}
.description ul a{
line-height:30px;
font-weight:bold;
color:#fff;
text-decoration:none;
text-transform:uppercase;
font-size:11px;
text-shadow:1px 1px 1px #aaa;
}
.description ul a:hover{
color:#f0f0f0;
}
.thumbs a img{
border:3px solid #f9f9f9;
-moz-box-shadow:1px 1px 2px #999;
-webkit-box-shadow:1px 1px 2px #999;
box-shadow:1px 1px 2px #999;
}
[/css]
jQuery:
[javascript]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.path.js"></script>
<script type="text/javascript">
$(function() {
/* when page loads animate the about section by default */
//move($('#about'),2000,2);
$('#menu > a').mouseover(
function(){
var $this = $(this);
move($this,800,1);
}
);
/*
function to animate / show one circle.
speed is the time it takes to show the circle
turns is the turns the circle gives around the big circle
*/
function move($elem,speed,turns){
var id = $elem.attr('id');
var $circle = $('#circle_'+id);
/* if hover the same one nothing happens */
if($circle.css('opacity')==1)
return;
/* change the image */
$('#image_'+id).stop(true,true).fadeIn(650).siblings().not(this).fadeOut(650);
/*
if there's a circle already, then let's remove it:
either animate it in a circular movement or just fading out, depending on the current position of it
*/
$('#content .circle').each(function(i){
var $theCircle = $(this);
if($theCircle.css('opacity')==1)
$theCircle.stop()
.animate({
path : new $.path.arc({
center : [409,359],
radius : 257,
start : 65,
end : -110,
dir : -1
}),
opacity: '0'
},1500);
else
$theCircle.stop()
.animate({opacity: '0'},200);
});
/* make the circle appear in a circular movement */
var end = 65 - 360 * (turns-1);
$circle.stop()
.animate({
path : new $.path.arc({
center : [409,359],
radius : 257,
start : 180,
end : end,
dir : -1
}),
opacity: '1'
},speed);
}
});
</script>
[/javascript]
HTML:
[html]
<div id="content">
<div class="title"></div>
<div class="wrapper">
<div id="images" class="images">
<img id="image_about" src="images/sreehari-profile2.png" alt="" width="402" height="402" style="display:block;"/>
<img id="image_tutorials" src="images/2.png" alt="" width="402" height="402"/>
<img id="image_contact" src="images/3.png" alt="" width="402" height="402" />
</div>
<div class="circleBig">
<div id="menu" class="menu">
<a id="about" class="about" href="https://www.facebook.com/isreeharii" target="_blank" title="Sreehari Inukollu -SPLessons">About me</a>
<a id="tutorials" class="tutorials" href="http://www.splessons.com/" target="_blank" title="Sreehari Inukollu -SPLessons">Tutorials</a>
<a id="contact" class="contact" href="mailto:isreehari@splessons.com" target="_blank" title="Sreehari Inukollu -Email" >Contact</a>
</div>
</div>
</div>
<div id="circle_about" class="circle">
<div class="description">
<ul>
<li><a href="https://www.facebook.com/isreeharii" target="_blank" title="Sreehari Inukollu -SPLessons">Who I am</a></li>
<li><a href="http://www.splessons.com/" target="_blank" title="Sreehari Inukollu -SPLessons">What I do</a></li>
</ul>
</div>
</div>
<div id="circle_tutorials" class="circle">
<div class="description">
<div class="thumbs">
<a href="http://www.splessons.com/jquery/" target="_blank" title="PHP Tutorials -SPLessons"><img src="thumbs/sp1.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="HTML and CSS Tutorials -SPLessons"><img src="thumbs/sp2.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="jQuery Tutorials -SPLessons"><img src="thumbs/sp3.jpg" alt=""/></a>
<a href="http://www.splessons.com/sharepoint-2013/" target="_blank" title="C# and .Net Tutorials -SPLessons"><img src="thumbs/sp4.jpg" alt=""/></a>
<a href="http://www.splessons.com/sharepoint-2013/" target="_blank" title="SharePoint Tutorials -SPLessons"><img src="thumbs/sp5.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="Java Tutorials -SPLessons"><img src="thumbs/sp6.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="Sugar CRM Tutorials -SPLessons"><img src="thumbs/sp7.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="Mobile Apps Tutorials -SPLessons"><img src="thumbs/sp8.jpg" alt=""/></a>
<a href="http://www.splessons.com/jquery/" target="_blank" title="Photoshape Tutorials -SPLessons"><img src="thumbs/sp9.jpg" alt=""/></a>
</div>
</div>
</div>
<div id="circle_contact" class="circle">
<div class="description">
<ul>
<li><a href="mailto:isreehari@splessons.com" target="_blank" title="Sreehari Inukollu -Email" >Email</a></li>
<li><a href="https://twitter.com/isreehari" target="_blank" title="Sreehari Inukollu -Twitter">Twitter</a></li>
<li><a href="https://www.facebook.com/isreeharii" target="_blank" title="Sreehari Inukollu -Facebook">Facebook</a></li>
</ul>
</div>
</div>
</div>
[/html]