Create custom jQuery like fadeIn animation by javascript