This is my first time using jQuery, I am taking an online class for it but have never used it on a website.
My goal is on the homepage to have "Hello there" show up first for 2 seconds, then fade out and have "Your partner in digital" fade in and stay permanently.
I've been playing around with a few ideas of related connundrums here and am getting close. But my structure seems wrong because: 1) Both things show up at first, then "hello there" starts to fade and then "your partner is bumped up" - I want "hello there" to show up quick and then fade away 2) I want "your partner in digital" to never fade away once it appears
jQuery(document).ready(function(){
$(".hellothere").fadeOut(4500,function(){
$(".partner").fadeIn(10000, function(){
$(".partner").fadeOut(4500);
});
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<h1 class="hellothere"><span class="font-168856 font-444086" style="font-size: 65px; text-transform: uppercase;">Hello there.</span></h1>
<h1 class="partner"><span class="font-168856 font-444086" style="font-size: 65px; text-transform: uppercase;">Your partner in digital.</span></h1>
When I deleted this:
function(){
$(".partner").fadeOut(4500);
It broke the whole thing (was trying to get it to stop fading out).
Any tips here? Thanks so much.