I'm making a web app and I want to switch between different tabs, which I have set up in section with the data-role set to page. I am able to switch through the tabs fine, but when I try to add a CSS transition it doesn't do anything. The app responds the same way whether I have a transition set or not, it doesn't even give me an error message of why no transition is taking place.
Here is my CSS:
[data-role=page]{
postion: absolute;
top: 0;
left: 0;
display:none;
transition: left 0.8s ease; /* faulty transition */
}
.active{
display:block;
}
.hide{
display: none;
}
The hide and active classes showed above in the CSS is what I use to toggle between tabs.