# Coverflow layout for list?

**URL:** <https://forum.ionicframework.com/t/coverflow-layout-for-list/29334>\
**Category:** ionic-v1\
**Created:** [July 28, 2015, 6:37am UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334 "2015-07-28T06:37:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan2k3k4](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dan2k3k4/32/90653_2.png) [@dan2k3k4](https://forum.ionicframework.com/u/dan2k3k4)\
**Post date:** [July 28, 2015, 6:37am UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334/1 "2015-07-28T06:37:13Z")

</div>

I am trying to integrate CoverflowJs from : [http://coverflowjs.github.io/coverflow](http://coverflowjs.github.io/coverflow)

I have included jQuery, Coverflow JS and CSS.

However for: `<ion-list collection-repeat="file in vm.files"><div><img><p></p></div></ion-list>` - I get just a blank page.

Has anyone used Coverflow in Ionic?

---

<div class="post-metadata">

**Author:** ![Gajotres](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gajotres/32/98564_2.png) [@Gajotres](https://forum.ionicframework.com/u/Gajotres)\
**Post date:** [July 28, 2015, 8:41am UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334/2 "2015-07-28T08:41:45Z")

</div>

Can you create a working example of what you have done so far and I will make it work (or at least try 😄 ).

---

<div class="post-metadata">

**Author:** ![dan2k3k4](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dan2k3k4/32/90653_2.png) [@dan2k3k4](https://forum.ionicframework.com/u/dan2k3k4)\
**Post date:** [July 28, 2015, 9:41am UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334/3 "2015-07-28T09:41:04Z")

</div>

In head :

```
<link rel="stylesheet" href="lib/coverflow/dist/coverflow.css">

<!-- jQuery -->
<script src="lib/jquery/dist/jquery.min.js"></script>

<!-- Coverflow -->
<script src="lib/coverflow/dist/coverflow.min.js"></script>

```

In Pdf.html :

```
<ion-content title="Pdf">
    <ion-list>
        <ion-item collection-repeat="file in vm.files" collection-item-height="35%" collection-item-width="100%" style="text-align: center">
            <div class="center" ng-class-odd="'ion-list-odd'" ng-class-even="'ion-list-even'" ng-click="vm.load('{{vm.pdf}}' + file.pdf, '{{file.year}}')">
                <img ng-src="{{vm.thumb}}{{file.thumb}}" class="center pdf-image" ng-if="file.thumb != ''">
                <img ng-src="img/photo_place_holder.png" class="center pdf-image" ng-if="file.thumb == ''">

                <p style="padding-top: 1em;">{{file.year}}</p>
            </div>
        </ion-item>
    </ion-list>
</ion-content>

```

In pdfController :

```
        vm.coverflow = '';
        ionic.Platform.ready(function() {
            if (vm.coverflow === '') {
                console.log('init coverflow');
                vm.coverflow = $('.collection-repeat-container').coverflow();
            }
        });

```

There’s around 200 images/pdf for the files :

```
 var data = [
        {
            year: 2014,
            pdf: '2014.pdf',
            thumb: '2014.jpg'
        },
        {
            year: 2015,
            pdf: '2015.pdf',
            thumb: '2015.jpg'
        }
     ];
```

---

<div class="post-metadata">

**Author:** ![dan2k3k4](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dan2k3k4/32/90653_2.png) [@dan2k3k4](https://forum.ionicframework.com/u/dan2k3k4)\
**Post date:** [July 28, 2015, 9:53am UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334/4 "2015-07-28T09:53:28Z")

</div>

It seems I have to add a bunch of CSS changes to make it work. ion-list items need to be a smaller width etc. to try and re-create the same coverflow found at :  
[http://coverflowjs.github.io/coverflow/](http://coverflowjs.github.io/coverflow/)

---

<div class="post-metadata">

**Author:** ![dan2k3k4](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dan2k3k4/32/90653_2.png) [@dan2k3k4](https://forum.ionicframework.com/u/dan2k3k4)\
**Post date:** [July 28, 2015, 5:04pm UTC](https://forum.ionicframework.com/t/coverflow-layout-for-list/29334/5 "2015-07-28T17:04:45Z")

</div>

@Gajotres I tried with [http://vanderlee.github.io/coverflow](http://vanderlee.github.io/coverflow) but it only shows one cover and the rest are hidden behind instead of being shown to the left/right (and taking up the whole 100% of the screen width)…
