jQuery Mobile triggers the re-running of CSS3 animations when a panel is shown

Currently utilizing jQuery Mobile to design a sidebar panel:

CSS3 animations are incorporated in the body of my page (ui-content), triggering upon page load:

h1.page-title{
    -webkit-animation: fade-in 1s linear;
    animation: fade-in 1s linear;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

Everything functions as expected, except that when the link is clicked to display the panel, the animations run again (only once). Any ideas on what could be causing this?

The page-title class is unique and not manipulated by jQuery mobile in any way. It seems like it might simulate a page refresh, but oddly if the link is clicked twice the animations do not repeat.

Answer №1

According to Omar's remarks, this method is effective:

Enclose the content div in a

<div class="ui-panel-wrapper">
. When the panel is first opened, it will wrap the content div in a div with the specified class. This only occurs for the display options of data-display as push and reveal, not for overlay.

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

Utilizing localStorage for language adjustment

To change the language on the website, we use the following code: <select> <option value = ""> </option>. The language switch is successful. <select class="tt-select" id="lang" name="forma" oncha ...

Use JavaScript to input array elements into a selection of cells in Excel

At this moment, the loop I am executing successfully retrieves the necessary values. However, I am facing challenges when it comes to inserting these array values into a range of cells. I keep encountering the following error message: Error message: "The ...

A guide to setting up Firebase(FCM) Push Notifications on nuxtjs / vuejs

Despite extensive hours scouring the internet for a user-friendly method to incorporate Firebase FCM Push Notification into my nuxt project, I came up empty-handed. ...

What is the best way to toggle a div and dynamically load content into it while it's open?

I am looking to create a toggle effect where a div opens, loads a page within it, and then can be closed again. My goal is to achieve this functionality with multiple links on the page. <div id="main-nav"> <div id="menu-container"&g ...

The PHP-jQuery script is failing to calculate the time difference between two dates, resulting in

I'm having trouble setting up a timer that displays the time elapsed since a user logs in. Whenever I retrieve the datetime from the database, it returns NaN. <script> $('document').ready(function() { var sess_rec_id = /*record id val ...

What is the best way to incorporate Javascript and Jquery into a Rails 4.2.4 application running on Ruby 2.2.3?

Currently, I am working on an app using Ruby on Rails with the specified versions of Rails and Ruby. My main goal is to integrate JavaScript/ jQuery into my mindmap index views in order to dynamically add information to the page without requiring a full p ...

Is there a way to manipulate the icon to reflect the state of only the audio that is currently playing?

Hey there, I've encountered an issue with my code where the icon seems to change for all divs instead of just the one that is playing when a sound is triggered. Any suggestions on how to address this problem? Check out the code here JavaScript Snipp ...

Can AutoIT be used with Mocha Selenium, Nodejs, and JavaScript for windows authentication?

I am currently automating an application where a pop-up for Windows Authentication appears when a button is clicked. I am using Selenium, Mocha, and JavaScript for automation. I need assistance on how to authenticate through automation. I attempted to use ...

Creating a vertical navigation menu and displaying its submenu on corresponding pages in a horizontal layout

I'm struggling to design a navigation layout for my website where I want to display the main menu items like this: Menu 1 Menu 2 Menu 3 Menu 4 Menu 5 and have their respective sub-menus displayed horizontally on their main menu pages like this: ...

Is there a way to change a string that says "False" into a Boolean value representing false?

When retrieving values from the backend, I am receiving them as strings 'True' and 'False'. I have been attempting to convert these values into actual Boolean values, however, my current method always returns true. What is the correct a ...

Understanding the outcomes of CSS media queries

I'm currently grappling with CSS media queries for a mobile-centric webpage. My main objective is to maintain consistent font sizes on the page, regardless of device physical size and resolution specifications that may vary. However, I am finding that ...

The local() function in CSS @font-face is limited to finding only the "regular" and "bold" font styles, not others

Recently, I added some new fonts (specifically Roboto) to my Linux Ubuntu PC and wanted to incorporate them into my CSS using the @font-face rule. However, I encountered an issue when specifying different font weights within the src: ; property as shown in ...

Extracting data from a web service and populating an OWC11 spreadsheet with 10,000 rows

Having an issue with the web service call taking too long to return. The ASP.NET page is taking over a minute to start loading. Currently, I am using C# Response.Write() to output the data to Javascript for insertion into OWC11 spreadsheet. I'm lookin ...

Versioning resources in Spring MVC with Thymeleaf

https://i.sstatic.net/ArllV.png Struggling with resource versioning in Spring Mvc 4 while using thymeleaf template engine. Despite the code provided, I am unable to see the new version URL when viewing the page source. What could be causing this issue? Wh ...

Tips for creating a custom vertical grid layout in Bootstrap with specific item placements

I've been on a quest to find a method to display a bootstrap column vertically instead of horizontally. I am adamant about not using masonry or any other external library. My goal is to have "Card 2" appear beneath "Card 1" on medium to small screens ...

Looking to create an extensive navigation menu using "HTML, JavaScript, jQuery, and Bootstrap"?

I have been tirelessly searching for a solution to clean up my code by creating a reusable navigation bar that can be easily added to other pages. Despite my efforts, I have not been successful in achieving this. I am using the Bootstrap library and would ...

Verify whether a certain key exists within the gun.js file

Suppose I need to verify whether a specific entry exists in the database before adding it. I attempted the following: gun.get('demograph').once((data, key) => { console.log("realtime updates 1:", data); }); However, I only receive ...

Error thrown by jqueryUI Sortable: DOM Exception 3 - HIERARCHY_REQUEST_ERR

I have been using a tutorial to create a page where divs can be reordered and moved around. I made some modifications to allow for dynamically adding new divs, but I am encountering an error at times when trying to reorder or move the existing divs. The er ...

.Net authentication using Windows credentials

As I work on developing a website utilizing ASP.net and C#, one of my requirements is to utilize windows authentication for user login. Currently, I am experimenting with storing the authenticated user's name in a session in order to access it later ...

Generating Enums from JSON REST API in Angular 8

Is there a way to create an enum from a JSON REST API? Here is the code I currently have in my service.ts file: getDataFromJson(): Observable<any> { return this.httpClient.get<any>(`../../../assets/gender.json`) .pipe(map(data => ...