Make sure to keep Typed.js hidden until the Animate.css animation is complete

To create an engaging webpage, I am leveraging Bootstrap, Animate.css, and Typed.js. The desired effect is to have a blank page initially, then make the navigation bar slide down using animate.css fadeInDown. Once this animation completes, the Typed.js line should start typing out text. Finally, when the text typing finishes, a chevron (from FontAwesome) should animate in using animate.css bounceInUp.

The current code I have written seems to trigger all these events simultaneously, and the chevron animation does not work as expected.

<body>

  <nav class="navbar navbar-fixed-top">
    <div class="container-fluid animated fadeInDown">
      <div class="navbar-header">
        ...
          <li><h3><a href="#">Blog</a></h3></li>
        ...
      </div>
    </div>
  </nav>

  ...

CSS Styling:

/*********************************************************
*                                                        *
*             Custom Styles for First Panel              *
*                                                        *
*********************************************************/

.jumbotron
{
  width: 100%;
  height: 100%;
  padding-top: 0px;
  padding-bottom: 0px;
}

...

/* Define properties for text centering on the page */
.special
{
  background: transparent;
  color: #fff;
  font-family: "ocr-a-std", san-serif;
  text-transform: uppercase;
}
...

Answer №1

take a look at the jQuery ready documentation

The .ready() function is commonly used with an unnamed function.

illustration :

<script>
    $(document).ready(function(){
        $('.showAndTell').hide();
        $('.fa-chevron-down').hide();
        $('.container-fluid').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', showTypingEffect);
    });
</script>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

a guide on showcasing a table according to a specific column's data (CSV Path)

I currently have a table structured like this: File Name File path MyFile1.csv D:\tmp\MyFile1.csv MyFile2.csv D:\tmp\MyFile1.csv As of now, my primary table is displayed as shown below: <div class="panel-body table-res ...

Is there a way to dynamically update CSS files with JavaScript?

Hey, I'm having some trouble altering the values on my HTML page using JavaScript and CSS. Unfortunately, it's not working as expected. Can someone please take a look at my code and help me out? // Displaying persons and their records for ...

Access the data attribute of a button element in AngularJS

Utilizing Angularjs for managing pagination loop button id=remove_imslide, I am attempting to retrieve the value of data-img_id from the button to display in an alert message using a Jquery function on button click, but I am encountering issues. This is h ...

Using JQuery to parse an XML file and automatically redirecting the page if a specific attribute equals "Update"

Updated I've made some edits to clarify my request. My website is built using HTML5, CSS3, and JQuery, resulting in all content being on one page. During updates, I want the ability to set an option in a configuration file so that when users visit m ...

Tips for adjusting the height of the Bootstrap navbar and ensuring the text remains centralized

I've attempted various methods to customize the Bootstrap navbar. I have successfully changed its color and adjusted its height. However, there is still an issue with the text alignment.Check it out here. ...

Is there a way to send JSON data back to Riot.js from a Node.js express server?

I am in the process of creating a web application using Riot.js on the client side and Node.js express on the server side. One of the challenges I'm facing is how to mount JSON data with Riot.js for rendering HTML. Currently, I have JSON data stored o ...

Unable to create a new user account

I have been working on developing an e-commerce platform using the MERN stack, but I have encountered an issue with registering new users. The system only allows me to register the first user successfully after clearing the database, but subsequent registr ...

What is the process for retrieving matched information from a drop-down menu in HTML?

Is there a way to retrieve data from angularjs like this: This is the list of data I need to access: $scope.orderStatus = [ { os: 'Open', value: 1 }, { os: 'Completed', value: 2 }, { os:'Cancelled',value: 3 }, ...

Is there a way to search for the keyword "/test/" within a lengthy string using Regular Expressions?

When faced with a string structured like this: const myString = /example/category/modify?itemID=someID&type=number How can I efficiently extract the segment "/category/" by employing: const subSegment = myString.match(...); My framework of choice i ...

Attempting to dynamically add an image to a template snippet

Struggling with inserting images dynamically from database paths in templates. How can I display them when a user clicks the Show More button on an expense page? New to templates and unsure about syntax. Show More Button displayed in the HTML template sho ...

What differences exist in the implications of the options for the socket.io server object?

According to the socket.io documentation, you have the option to utilize the http.Server object or directly input a port number into the socket.io server object. What distinguishes the two methods? Instantiate the socket.io Object const io = require(&apo ...

The auto-complete feature in Bootstrap tagsinput is malfunctioning

<script type="text/javascript"> $(function () { $('#input-tagautocomplete').tagsinput({ typeahead: { source: function (term, process) { items = []; map = {}; var url = ...

Animation for navigation | Struggling to animate only the specific list item

It's late at night and I'm struggling to solve a small problem. Despite feeling tired, I'll ask anyway - even if it makes me look foolish. Here is the code snippet: The HTML: <style> nav.main ul { font-size:175%; font-weight:300; ...

The issue I am encountering is that the keyboard controls in JavaScript are not causing the

One of the key elements in my code revolves around JavaScript functionality. I have implemented a feature where objects can be moved by pressing keys such as "down" or "right". However, there seems to be an issue where an object loaded from a .json file is ...

Stop the duplication of the HTML content to ensure only one copy is saved

Recently, I have been coding a feature that saves the HTML of the currently displayed page to another file upon pressing a button. However, I encountered an issue where if the button is pressed multiple times quickly, the saved file contains incorrect HTML ...

The connection between the layout of dropdown menus and the way data is handled in forms

I have discovered three different methods for creating dropdowns that can be used in forms: 1) Utilizing HTML with "form-dedicated" attributes such as select and option value="" 2) Implementing the Bootstrap framework with div classes like "dropdown", Butt ...

delaying the alteration of an image attribute following an AJAX call

After clicking on a button, a function is triggered (think of it as a published/unpublished button). Immediately after the function is activated, I change the element to display a loader gif. function updateStatus(event, status, element, data, action) { ...

Issues arise when attempting to send an AJAX POST request within WordPress

After going through multiple resources, all mentioning the same approach that I am following, I have two essential files for this process: In the receiver.php file: <?php add_action( 'wp_enqueue_scripts', 'my_enqueue' ); ad ...

Merge JSON objects into an array

Is there a way to merge JSON objects when the initial object is: { "total": "2" } And the second one is: [ "player1": { "score": "100", "ping": "50" }, "player2": { "score": "100", "ping": "50" ...

The Angular ui-calendar introduces an innovative approach to event addition, providing users with

I need help with adding events to the angular ui calendar. Currently, I am using $scope.events.push() method to add events, but they get reset when changing the month. If anyone has experience with angular ui-calendar and event addition, please provide ...