I am looking for a way to make it so that when I remove my center
class from p.title.class
that it has a smooth transition to moving to the new position. JSfiddle
Heres a snippet of my HTML:
<body>
<div class="wrapper-top">
<div>
<ul>
<li class="left"><a href="#">Help</a></li>
<li class="right">
<a href="#">Login</a>
<a href="#">Register</a>
</li>
</ul>
</div>
<p class="title center">LoLNode</p>
</div>
</body>
Heres a snippet of my CSS:
.wrapper-top {
min-height:100%;
overflow:auto;
background: -webkit-linear-gradient(#3498db, #2980b9);
background: -o-linear-gradient(#3498db, #2980b9);
background: -moz-linear-gradient(#3498db, #2980b9);
background: linear-gradient(#3498db, #2980b9);
/*background-image:url(./assets/bg_1.jpg);
background-position:bottom;
background-repeat:no-repeat;
background-size:cover;*/
}
.wrapper-top div:first-child {
padding:5px;
background:url(./assets/horizontal_line.png) bottom repeat-x;
z-index:100;
}
.wrapper-top div:first-child ul {
width:50%;
overflow:auto;
margin:auto auto;
list-style-type:none;
}
.wrapper-top div:first-child ul li {
overflow:auto;
display:inline-block;
color:#FFF;
text-shadow:0px 1px 1px #000;
}
.wrapper-top p.title {
font-size:60px;
font-family:"Alegrey Thin", Helvetica, sans-serif;
color:#FFF;
text-shadow:0px 2px 1px #000;
text-align:center;
}
.wrapper-top p.title.center {
width:220px;
height:60px;
position:absolute;
top:0;bottom:0;
left:0;right:0;
margin:auto auto;
}
Heres a snippet of my jQuery:
$(document).ready(function() {
$("p.title.center").click(function() {
$("p.title.center").removeClass("center");
});
});