I try to make slide up and slide down divs at one time.
I want the first div slide down an the hidden next div slide up
I would like to make these elements overlap when animated
jQuery
- $(document).ready(function() {
- $('.plus').click(function() {
- $('header h1').animate({
- 'margin-top': '999px',
- opacity: 'toggle'
- },
- 1500);
- $('header h2').animate({
- 'margin-top': '0px',
- opacity: 'show'
- },
- 1200);
- });
- $('.minus').click(function() {
- $('header h2').hide('slow');
- $('header h1').show('slow');
- });
- });