FantasyInteractive / magazine

Public repo for Microsoft The Find project.
54 stars 20 forks source link

Quick overview for configuring the magazine code package:

After downloading the code you can initially preview the demo by opening index.html in a browser.

To customize the catalog with your own assets you'll need to make the following changes to index.html:

Add your own pages: Modify the divs inside of the catalogue element <div id="catalogue"> with your own images:

<div page="6" imageurl="path/to/your/image"></div>

You can add or remove as many pages as you want, just be sure the page attribute is accurate and that the images are all the same aspect ratio. Note that some pages in the demo already have the background-image style set - this is required only for the first two pages, beyond that the images are loaded when they're about to appear. You should also replace the thumbnail in the grid wrapper:

  <li>
     <a href="#page-2">    <!-- this hash tag format is required -->
       <div class="item">
         <div class="thumb">
           <div class="thumb-shadow"></div>
           <img class="thumb-img" src="https://github.com/FantasyInteractive/magazine/raw/master/page/to/your/page2thumbnail">
           <img class="thumb-img" src="https://github.com/FantasyInteractive/magazine/raw/master/page/to/your/page3thumbnail">
         </div>
         <span class="grid-index">2 - 3</span>
       </div>
     </a>
   </li>

Add your own products/hotspots: This part is optional and you can delete the products or product list container element if you want. In the <div class="product-list"> container you'll find a list of product items. The data attributes for each item control the following:

Turn.js: