I have a nav menu that has a transitions CSS:
nav {
    height: 700px;
    width: 100%;
    background-color: rgb(158, 165, 177);
    position: relative;
    margin-top: -622px;
    -webkit-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
       -moz-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
        -ms-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
         -o-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
            transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
}
.show-nav {
    margin-top: -100px;
}
i use this jQuery to trigger it:
$('nav').click(function(e) {
    e.preventDefault();
    $(this).toggleClass('show-nav');
});
The problem is that every time the page loads I see the margin transition as if it had the show-nav class and then removed.
Why is that?
 
    