Recently, I've been experimenting with creating a mobile application using PhoneGap and I have some questions about defining the layout.
I am trying to create a single-page layout with side scrolling, similar to a carousel image gallery, but instead of switching images, I want to switch between pages.
My goal is to achieve a carousel-like effect when switching "pages" and I was considering using Bootstrap or Ink for this purpose. I would like each column to act as a different screen, much like the concept explained in an example where red squares represent the visible screen (or column) and blue squares represent the invisible screens (or columns). Each column should "scale" to fill the screen/viewport.
After reading the documentation for both frameworks, I'm unsure how to accomplish this given the column definitions provided.
The default Bootstrap grid system consists of 12 columns, resulting in a container that is 940px wide without responsive features enabled. Once the responsive CSS file is added, the grid adjusts to be either 724px or 1170px wide based on the viewport size. For viewports under 767px, the columns stack vertically.
In Ink, you have three layouts available: S for small, M for medium, and L for large. By default, these correspond to specific screen size intervals:
- Small: below 650 pixels wide
- Medium: between 651 and 960 pixels wide
- Large: above 961 pixels wide
Based on my understanding, it seems challenging to achieve the desired effect using these frameworks.
So, my question is: How can I achieve the desired effect and modify the column definition in Bootstrap or Ink so that each column represents a screen (or a set of columns adding up to 12)? Is this even feasible? Are there any other alternatives I should consider?
Regards, Celso Santos