Answer the question
In order to leave comments, you need to log in
How to enable animation after page load?
There is a piece of code in which the animation is turned on when the button is clicked:
$(function() {
$("#anm3").click(function(){
$("#bounce").addClass("animated fadeIn");
});
});
Answer the question
In order to leave comments, you need to log in
$(document).ready( function(){
$("#bounce").addClass("animated fadeIn");
} );
Adding a menu wrapper
<div class="menu__wrapper">
<div class="menu">
...
</div>
</div><!--/.menu__wrapper (отмечаем конец обертки, дабы не путать с другими закрывающими тегами) -->
.menu__wrapper {
width: 100%;
margin: 0 auto;
}
.menu {
width: auto;
margin: 0;
text-align: center;
}
div.menu
, при которой margin: 0 auto;
будет продолжать выравнивать блок по центру. Но тогда возникнет проблема с расширением меню при добавлении пунктов.
.menu {
text-align: center;
}
.menu ul {
display: inline-block;
}
Give the menu class a fixed width and center align with margin
.menu {
witdh: 616px;
margin: 0 auto;
}
use relative rather than absolute positioning of the menu, and set the left margin to 35%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question