Understanding jQuery Mobile Theming Framework and Transition Effects

07 Sep 2022
2 min read  

jQuery Mobile provides a powerful theming framework that allows you to customize color schemes provided by jQuery Mobile. By using jQuery Mobile ThemeRoller, you can develop a customized theme for your application and can download your custom CSS file and include it in your application.

By default jQuery Mobile theme comes with five different color swatches, named as: a, b, c, d and e. You can apply a particular theme on HTML elements by using data-theme attribute as given below:

<div data-role="page">

 <div data-role="header" data-theme="a">
 <h1>Theme a</h1>

 <div data-role="header" data-theme="b">
 <h1>Theme b</h1>

 <div data-role="header" data-theme="c">
 <h1>Theme c</h1>

 <div data-role="header" data-theme="d">
 <h1>Theme d</h1>

 <div data-role="header" data-theme="e">
 <h1>Theme e</h1>

Different jQuery Mobile Transition Effects

jQuery Mobile provides various transition effects for going from one page to the another page. jQuery mobile provides this transition effect with the help of CSS3 3D Transforms. Hence, to achieve this, your browsers must support CSS3 3D transform. The various transition effects are listed below:

jQuery Mobile Transition Effects
This is by default effect. Fades to the next page
Flips to the next page from back to front
Throws the current page away and comes in with the next page
Goes to the next page like a popup window
Slides to the next page from right to left
Slides from right to left and fades in the next page
Slides to the next page from bottom to top
Slides to the next page from top to bottom
Turns to the next page
No transition effect
What do you think?

I hope you have enjoyed the article and would able to have a clear picture about jQuery Mobile themes and transitions effects. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Share Article
About Author
Shailendra Chauhan (Microsoft MVP, Founder & CEO at Scholarhat by DotNetTricks)

Shailendra Chauhan is the Founder and CEO at ScholarHat by DotNetTricks which is a brand when it comes to e-Learning. He provides training and consultation over an array of technologies like Cloud, .NET, Angular, React, Node, Microservices, Containers and Mobile Apps development. He has been awarded Microsoft MVP 8th time in a row (2016-2023). He has changed many lives with his writings and unique training programs. He has a number of most sought-after books to his name which has helped job aspirants in cracking tough interviews with ease.
Learn to Crack Your Technical Interview

Accept cookies & close this