This is the code that relates to the title:
#main {
float: left;
width: 20%;
height: 10vh;
margin-top: 10vh;
margin-left: 40%;
text-align: center;
}
#k {
font-family: Questrial;
font-size: 70px;
margin-top: -7px;
margin-left: -2px;
color: #404040;
border-bottom: 2px solid #404040;
line-height: 0.85;
}
#about {
float: left;
clear: both;
width: 38%;
height: 30vh;
margin-top: 7vh;
margin-left: 31%;
text-align: center;
background-color: #33CC33;
border-radius: 100%;
opacity: 0.6;
transition: opacity .5s;
-webkit-transition: opacity .5s;
transition: margin-top .5s;
-webkit-transition: margin-top .5s;
transition: margin-bottom .5s;
-webkit-transition: margin-bottom .5s;
}
#about:hover {
opacity: 0.8;
margin-top: 5vh;
margin-bottom: 2vh;
}
#work {
float: left;
width: 38%;
height: 30vh;
margin-top: 0vh;
margin-left: 10%;
text-align: center;
background-color: #323280;
border-radius: 100%;
opacity: 0.6;
transition: opacity .5s;
-webkit-transition: opacity .5s;
}
#work:hover {
opacity: 0.8;
}
#contact {
float: right;
width: 38%;
height: 30vh;
margin-top: 0vh;
margin-right: 10%;
text-align: center;
background-color: #FF6600;
border-radius: 100%;
opacity: 0.6;
transition: opacity .5s;
-webkit-transition: opacity .5s;
}
#contact:hover {
opacity: 0.8;
}
.label {
font-family: Questrial;
color: white;
font-size: 35px;
margin-top: 80px;
}
<!DOCTYPE html>
<html>
<head>
<title>KURB - Home</title>
<link rel="stylesheet" type="text/css" href="kurb.css"/>
<link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="main">
<p id="k">KURB</p>
</div>
<div id="about">
<p class="label">Blah blah blah</p>
</div>
<div id="work">
<p class="label">Blah blah blah blah blah</p>
</div>
<div id="contact">
<p class="label">Blah blah blah blah</p>
</div>
<script type="text/javascript">
</script>
</body>
</html>
The issue at hand involves animating the top div (#about) to move above the lower two upon mouseover by about 2 vh. The current setup shows an instant rise instead of a smooth animation when hovering. Furthermore, there seems to be a lack of color transition on mouseover for this specific section compared to the others.
An interesting observation is observed when removing the dashes in margin-top and margin-bottom attributes. In this case, instead of a gradual downward movement of the bottom two sections, all elements realign abruptly. This behavior is desired with an animated effect. The cause behind this erratic movement structure remains unclear. Is there a missing element in the configuration leading to this inconsistency?